...
my shinyApp does not load correctly. Any application however simple it is it displays this gray screen with names but nothing works. I already installed the package again and R. I updated everything that was possible and still nothing ...
...
my shinyApp does not load correctly. Any application however simple it is it displays this gray screen with names but nothing works. I already installed the package again and R. I updated everything that was possible and still nothing ...
@jordaoAlves, please provide a reproducible example as well as the following information:
sessionInfo()
sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
Matrix products: default
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252
[4] LC_NUMERIC=C LC_TIME=Portuguese_Brazil.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shiny_1.3.2
loaded via a namespace (and not attached):
[1] compiler_3.5.2 magrittr_1.5 R6_2.4.0 rsconnect_0.8.13 promises_1.0.1 later_0.8.0 htmltools_0.3.6
[8] tools_3.5.2 Rcpp_1.0.1 digest_0.6.19 xtable_1.8-4 httpuv_1.5.1 mime_0.6
SInce you did not paste any code, try this:
library(shiny)
library(DT)
shinyApp(
ui = fluidPage(
DT::dataTableOutput("mtcarsTable")
),
server = function(input, output) {
output$mtcarsTable <- DT::renderDataTable({
DT::datatable(datasets::mtcars[,1:3],
options = list(rowCallback = JS(
"function(nRow) {",
"var full_text = 'Test1';",
"var full_text1 = 'Test2';",
"$('td:eq(0)', nRow).attr('title', full_text);",
"$('td:eq(1)', nRow).attr('title', full_text1);",
"}")
)
)
})
}
)
Try that and see if shiny loads correctly
the error continues with your code. The error only occurs with versions of R> 3.5. I made a shiny 1300 lines of code recently in 3.4 and there was no problem, but I need to use packages that are asking for newer versions.
> sessionInfo ()
R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
Matrix products: default
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252
[4] LC_NUMERIC=C LC_TIME=Portuguese_Brazil.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] DT_0.7 plotly_4.9.0 breakDown_0.1.6 ggplot2_3.2.0 shinyWidgets_0.4.8
[6] shinydashboard_0.7.1 shiny_1.3.2
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 pillar_1.4.1 compiler_3.5.3 later_0.8.0 tools_3.5.3 digest_0.6.19
[7] viridisLite_0.3.0 jsonlite_1.6 tibble_2.1.3 gtable_0.3.0 pkgconfig_2.0.2 rlang_0.3.4
[13] rstudioapi_0.10 crosstalk_1.0.0 yaml_2.2.0 withr_2.1.2 dplyr_0.8.1 httr_1.4.0
[19] htmlwidgets_1.3 grid_3.5.3 tidyselect_0.2.5 glue_1.3.1 data.table_1.12.2 R6_2.4.0
[25] tidyr_0.8.3 purrr_0.3.2 magrittr_1.5 scales_1.0.0 promises_1.0.1 htmltools_0.3.6
[31] rsconnect_0.8.13 assertthat_0.2.1 mime_0.6 xtable_1.8-4 colorspace_1.4-1 httpuv_1.5.1
[37] labeling_0.3 lazyeval_0.2.2 munsell_0.5.0 crayon_1.3.4
>
That is not correct. I am running
sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Manjaro Linux
I ran the code I gave you and get datable output. I just updated R two days ago and reinstalled all my packages. I keep a backup of all my installed packages and they get reinstalled back. If you can not run the shiny app above then you have more issues with your installation
This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.