I recently installed both R and RStudio on a new computer, and wanted to create an RProject. I used to use the package renv before and it worked pretty well so far.
However, when I tried to initialize the renv library it first created all the necessary folders within the Rproject, but then suddenly gives th following error:
Fehler in data[[1]] . Indizierung ausserhalb der Grenzen
Afterwards it says: Fataler Fehler: unable to initialize the JIT
And finally produces a fatal error and collapses.
I already un- and reinstalled both R and RStudio twice, but without success.
Any ideas?
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252 LC_MONETARY=German_Switzerland.1252
[4] LC_NUMERIC=C LC_TIME=German_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 plyr_1.8.6 compiler_3.6.3 pillar_1.4.3 later_1.0.0 shinyjs_1.1
[7] tools_3.6.3 digest_0.6.25 viridisLite_0.3.0 jsonlite_1.7.0 lifecycle_0.1.0 tibble_2.1.3
[13] gtable_0.3.0 pkgconfig_2.0.3 rlang_0.4.7 shiny_1.4.0 DBI_1.1.0 rstudioapi_0.11
[19] crosstalk_1.0.0 RPostgreSQL_0.6-2 yaml_2.2.1 xfun_0.12 fastmap_1.0.1 stringr_1.4.0
[25] httr_1.4.1 dplyr_0.8.4 vctrs_0.2.3 htmlwidgets_1.5.1 DT_0.12 tidyselect_1.0.0
[31] leaflet_2.0.3 grid_3.6.3 data.table_1.12.8 glue_1.3.1 R6_2.4.1 plotly_4.9.2
[37] reshape2_1.4.3 tidyr_1.0.2 purrr_0.3.3 ggplot2_3.2.1 magrittr_1.5 shinycssloaders_0.3
[43] scales_1.1.0 promises_1.1.0 htmltools_0.5.0 assertthat_0.2.1 mime_0.9 xtable_1.8-4
[49] colorspace_1.4-1 httpuv_1.5.2 config_0.3 tinytex_0.20 stringi_1.4.6 lazyeval_0.2.2
[55] munsell_0.5.0 crayon_1.3.4 ```
Related
I'm trying to use formatable() but I'm not successful. I'm using some examples from the official CRAN documentation, but not even the examples are running.
i try version R 4.1.0 and 4.0.3, but dont worked.
my code exemple:
library(formattable)
formattable(mtcars, list(mpg = color_bar("lightgray", proportion)))
when using the command the column information disappears
Update:
SessionInfo()
R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)
Matrix products: default
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Brazil.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.0.2 readxl_1.3.1 writexl_1.3.1 webshot_0.5.2
[5] htmltools_0.4.0 formattable_0.2.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.4.6 cellranger_1.1.0 pillar_1.4.6 compiler_4.0.5
[5] dbplyr_1.4.4 tools_4.0.5 digest_0.6.25 jsonlite_1.6.1
[9] evaluate_0.14 lubridate_1.7.9 lifecycle_0.2.0 tibble_3.0.1
[13] gtable_0.3.0 lattice_0.20-41 pkgconfig_2.0.3 rlang_0.4.7
[17] DBI_1.1.0 cli_2.0.2 rstudioapi_0.11 yaml_2.2.1
[21] xfun_0.14 terra_1.2-10 raster_3.4-5 knitr_1.28
[25] generics_0.0.2 vctrs_0.3.4 htmlwidgets_1.5.1 grid_4.0.5
[29] tidyselect_1.1.0 glue_1.4.1 R6_2.4.1 fansi_0.4.1
[33] rmarkdown_2.2 sp_1.4-2 purrr_0.3.4 ggplot2_3.3.2
[37] blob_1.2.1 magrittr_1.5 scales_1.1.1 codetools_0.2-18
[41] ellipsis_0.3.1 assertthat_0.2.1 colorspace_1.4-1 munsell_0.5.0
[45] crayon_1.3.4
formattable_0.2.1
Can you provide sessionInfo(), please? I tried to run the code, and it works fine for me.
This is my sessionInfo():
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Pop!_OS 20.04 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_DK.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_DK.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_DK.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_DK.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] formattable_0.2.1 forcats_0.5.1 stringr_1.4.0 dplyr_1.0.6 purrr_0.3.4 readr_1.4.0 tidyr_1.1.3
[8] tibble_3.1.2 ggplot2_3.3.3 tidyverse_1.3.1
loaded via a namespace (and not attached):
[1] tidyselect_1.1.1 xfun_0.23 bslib_0.2.4 haven_2.4.1 colorspace_2.0-1 vctrs_0.3.8 generics_0.1.0
[8] htmltools_0.5.1.1 yaml_2.2.1 utf8_1.2.1 rlang_0.4.11 jquerylib_0.1.4 pillar_1.6.1 glue_1.4.2
[15] withr_2.4.2 DBI_1.1.1 dbplyr_2.1.1 modelr_0.1.8 readxl_1.3.1 lifecycle_1.0.0 munsell_0.5.0
[22] gtable_0.3.0 cellranger_1.1.0 rvest_1.0.0 htmlwidgets_1.5.3 evaluate_0.14 knitr_1.33 fansi_0.4.2
[29] broom_0.7.6 Rcpp_1.0.6 scales_1.1.1 backports_1.2.1 jsonlite_1.7.2 fs_1.5.0 hms_1.1.0
[36] digest_0.6.27 stringi_1.6.2 grid_4.1.0 cli_2.5.0 tools_4.1.0 sass_0.3.1 magrittr_2.0.1
[43] crayon_1.4.1 pkgconfig_2.0.3 ellipsis_0.3.2 xml2_1.3.2 reprex_2.0.0 lubridate_1.7.10 assertthat_0.2.1
[50] rmarkdown_2.8 httr_1.4.2 rstudioapi_0.13 R6_2.5.0 compiler_4.1.0
What version of formattable_0.2.1 and R Studio are you using?
Edit 1: It appears that the font is white. Can you try to edit the color of cyl, and see what happens?
formattable(mtcars, list(mpg = color_bar("lightgray", proportion), cyl = color_text("blue", "blue")))
Edit 2: You are using an outdated R Studio version, however, the problem is related to the themes. If you are using custom themes, make sure that these does not set the font in the viewer pane as white.
Error message:
错误: LaTeX failed to compile 121234567.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See 121234567.log for more info.
此外: Warning messages:
1: In xfun::read_utf8(f2) :
The file C:\Users\中文字符串\AppData\Local\Temp\RtmpSa7Fbe\stderr183065c81d05 is not encoded in UTF-8. These lines contain invalid UTF-8 characters: 1, 2, 3, 7
2: In xfun::read_utf8(f2) :
The file C:\Users\中文字符串\AppData\Local\Temp\RtmpSa7Fbe\stderr183029983419 is not encoded in UTF-8. These lines contain invalid UTF-8 characters: 1, 2, 3, 7
停止执行
It is probably caused by the none utf-8 characters in the file path.(username on Windows)
The file 121234567.tex is created by knitting the template rmarkdown given in RStudio.
SessionInfo:
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936
[2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tinytex_0.25 forcats_0.4.0 stringr_1.4.0 dplyr_0.8.3 purrr_0.3.3
[6] readr_1.3.1 tidyr_1.0.0 tibble_2.1.3 ggplot2_3.2.1 tidyverse_1.3.0
loaded via a namespace (and not attached):
[1] tidyselect_0.2.5 xfun_0.11 haven_2.2.0 lattice_0.20-38
[5] colorspace_1.4-1 vctrs_0.2.3 generics_0.0.2 htmltools_0.4.0
[9] yaml_2.2.0 rlang_0.4.2 pillar_1.4.2 glue_1.3.1
[13] withr_2.1.2 DBI_1.1.0 dbplyr_1.4.2 modelr_0.1.5
[17] readxl_1.3.1 lifecycle_0.1.0 munsell_0.5.0 gtable_0.3.0
[21] cellranger_1.1.0 rvest_0.3.5 evaluate_0.14 knitr_1.26
[25] fansi_0.4.0 broom_0.5.2 Rcpp_1.0.3 scales_1.1.0
[29] backports_1.1.5 jsonlite_1.6 fs_1.3.1 hms_0.5.2
[33] digest_0.6.23 stringi_1.4.3 grid_3.6.1 cli_2.0.0
[37] tools_3.6.1 magrittr_1.5 lazyeval_0.2.2 crayon_1.3.4
[41] pkgconfig_2.0.3 xml2_1.2.2 reprex_0.3.0 lubridate_1.7.4
[45] assertthat_0.2.1 rmarkdown_2.3 httr_1.4.1 rstudioapi_0.10
[49] R6_2.4.1 nlme_3.1-140 compiler_3.6.1
Please help.
I was able to run my shiny app when I had R version 3.5.1. The app was working fine. Now, as per the need of the server that we have , I needed to switch my local R version to 3.6.1 and had to reinstall all the packages.
Now, I am using bootsraplib library to get the app in Bootsrap4 version. But , now all those elements which were defined earlier in a conditional panel / they needed to be displayed under certain conditions , they are not getting displayed even when , in the server side the code that needs to run to get the condition to get those elements displayed gets executed correctly. but in UI side, those elements are not getting displayed now.
sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] reshape2_1.4.4 cowplot_1.0.0 bookdown_0.20.1 tinytex_0.24 shinysky_0.1.3 waiter_0.1.2
[7] rhandsontable_0.3.7 rio_0.5.16 shinyEffects_0.1.0 shinymaterial_1.1.0 plotly_4.9.2.1 expss_0.10.5
[13] scales_1.1.1 ggplot2_3.3.2 formattable_0.2.1 shinydashboard_0.7.1 dplyr_1.0.0 lubridate_1.7.9
[19] shinydashboardPlus_0.7.5 shinyWidgets_0.5.3 magrittr_1.5 shinyjs_1.1 shinyBS_0.61 devtools_2.3.0
[25] usethis_1.6.1 kableExtra_1.1.0 knitr_1.29 DT_0.14 shiny_1.5.0.9001
loaded via a namespace (and not attached):
[1] matrixStats_0.56.0 fs_1.4.2 webshot_0.5.2 httr_1.4.2 rprojroot_1.3-2 tools_3.6.1 backports_1.1.8
[8] R6_2.4.1 lazyeval_0.2.2 colorspace_1.4-1 withr_2.2.0 tidyselect_1.1.0 prettyunits_1.1.1 processx_3.4.3
[15] curl_4.3 compiler_3.6.1 cli_2.0.2 rvest_0.3.5 htmlTable_2.0.1 xml2_1.3.2 desc_1.2.0
[22] checkmate_2.0.0 readr_1.3.1 callr_3.4.3 stringr_1.4.0 digest_0.6.25 foreign_0.8-71 rmarkdown_2.3
[29] pkgconfig_2.0.3 htmltools_0.5.0 sessioninfo_1.1.1 fastmap_1.0.1 readxl_1.3.1 htmlwidgets_1.5.1.9001 rlang_0.4.7
[36] rstudioapi_0.11 generics_0.0.2 jsonlite_1.7.0 crosstalk_1.1.0.1 zip_2.0.4 Rcpp_1.0.5 munsell_0.5.0
[43] fansi_0.4.1 lifecycle_0.2.0 stringi_1.4.6 yaml_2.2.1 RJSONIO_1.3-1.4 plyr_1.8.6 pkgbuild_1.1.0
[50] grid_3.6.1 promises_1.1.1 forcats_0.5.0 crayon_1.3.4 haven_2.3.1 hms_0.5.3 ps_1.3.3
[57] pillar_1.4.6 pkgload_1.1.0 glue_1.4.1 evaluate_0.14 data.table_1.12.8 remotes_2.2.0 vctrs_0.3.2
[64] httpuv_1.5.4 cellranger_1.1.0 testthat_2.3.2 gtable_0.3.0 purrr_0.3.4 tidyr_1.1.0 assertthat_0.2.1
[71] xfun_0.15 openxlsx_4.1.5 mime_0.9 xtable_1.8-4 later_1.1.0.1 viridisLite_0.3.0 tibble_3.0.3
[78] memoise_1.1.0 ellipsis_0.3.1
What version of shiny you were using earlier?
Try this - options(shiny.jquery.version = 1)
I just upgraded to R 4.0.0 and I am now trying to reinstall the packages I use. But when I try to do so in RStudio, I have the following warning:
Warning in install.packages: converting NULL pointer to R NULL
I also had this sort of warning later when running a shiny app:
Warning in .Call("rs_registerShinyFunction", params): converting NULL pointer to R NULL
Where does this come from? How can I fix it?
If needed:
> sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
locale:
[1] LC_CTYPE=fr_FR.UTF-8 LC_NUMERIC=C
[3] LC_TIME=fr_FR.UTF-8 LC_COLLATE=fr_FR.UTF-8
[5] LC_MONETARY=fr_FR.UTF-8 LC_MESSAGES=fr_FR.UTF-8
[7] LC_PAPER=fr_FR.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shiny_1.4.0.2 hammer_0.0.0.9000 testthat_2.3.2
loaded via a namespace (and not attached):
[1] xfun_0.13 remotes_2.1.1 shinyjs_1.1 purrr_0.3.4
[5] miniUI_0.1.1.1 htmltools_0.4.0 usethis_1.6.1 yaml_2.2.1
[9] rlang_0.4.6 pkgbuild_1.0.8 later_1.0.0 glue_1.4.0
[13] withr_2.2.0 stringr_1.4.0 htmlwidgets_1.5.1 knitr_1.28
[17] callr_3.4.3 fastmap_1.0.1 golem_0.2.1 httpuv_1.5.2
[21] ps_1.3.3 fansi_0.4.1 Rcpp_1.0.4.6 xtable_1.8-4
[25] promises_1.1.0 backports_1.1.6 DT_0.13 shinyhelper_0.3.2
[29] desc_1.2.0 pkgload_1.0.2 jsonlite_1.6.1 config_0.3
[33] mime_0.9 fs_1.4.1 packrat_0.5.0 digest_0.6.25
[37] stringi_1.4.6 processx_3.4.2 stargazer_5.2.2 rprojroot_1.3-2
[41] here_0.1 cli_2.0.2 tools_4.0.0 dockerfiler_0.1.3
[45] magrittr_1.5 crayon_1.3.4 xml2_1.3.2 prettyunits_1.1.1
[49] shinyBS_0.61 attempt_0.3.1 assertthat_0.2.1 roxygen2_7.1.0
[53] rstudioapi_0.11 R6_2.4.1 compiler_4.0.0
Updating to the last Rstudio version (at least 1.2.5042) fixes the problem. It was noticed in this issue on Github.
To avoid incompatibilities with the new R major version, it might be a good idea to reinstall all the packages with:
installed <- installed.packages()[,1]
install.packages(installed)
This source recommends to install the packages with
Rscript -e 'install.packages(...)'
on the command line instead of RStudio. It seems to be something RStudio-specific.
I see that this question has been asked before, however none of the solutions seem to work for me.
I am trying to install mxnet on MacOS Mojave ver 10.14.3 for R. But I just can't get it to work.
I followed the installation instructions on the mxnet website and tried to build from source but to no success. Here's the error I get:
Error: package or namespace load failed for ‘mxnet’:
.onLoad failed in loadNamespace() for 'mxnet', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/mxnet/libs/libmxnet.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/mxnet/libs/libmxnet.so, 10): Library not loaded: /usr/local/opt/openblas/lib/libopenblasp-r0.3.1.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/mxnet/libs/libmxnet.so
Reason: image not found
I tried adding the soft link for openBlas using:
ln -sf /usr/local/opt/openblas/lib/libopenblasp-r0.3.* /usr/local/opt/openblas/lib/libopenblasp-r0.3.1.dylib
but it didn't work. When I run sessioninfo() in R, this is the output I get:
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS 10.14.3
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_IE.UTF-8/en_IE.UTF-8/en_IE.UTF-8/C/en_IE.UTF-8/en_IE.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] usethis_1.4.0 devtools_2.0.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 tidyr_0.8.1 prettyunits_1.0.2
[4] ps_1.1.0 visNetwork_2.0.5 assertthat_0.2.0
[7] rprojroot_1.3-2 digest_0.6.18 R6_2.3.0
[10] plyr_1.8.4 backports_1.1.2 ggplot2_3.0.0
[13] pillar_1.3.1 rlang_0.3.1 lazyeval_0.2.1
[16] rstudioapi_0.8 callr_3.0.0 DiagrammeR_1.0.0
[19] desc_1.2.0 downloader_0.4 readr_1.3.1
[22] stringr_1.3.1 htmlwidgets_1.3 igraph_1.2.2
[25] munsell_0.5.0 compiler_3.5.1 influenceR_0.1.0
[28] rgexf_0.15.3 pkgconfig_2.0.2 base64enc_0.1-3
[31] pkgbuild_1.0.2 htmltools_0.3.6 tidyselect_0.2.4
[34] tibble_2.0.1 gridExtra_2.3 XML_3.98-1.16
[37] viridisLite_0.3.0 crayon_1.3.4 dplyr_0.7.6
[40] withr_2.1.2 grid_3.5.1 jsonlite_1.6
[43] gtable_0.2.0 magrittr_1.5 scales_1.0.0
[46] cli_1.0.1 stringi_1.2.4 fs_1.2.6
[49] remotes_2.0.2 viridis_0.5.1 testthat_2.0.1
[52] bindrcpp_0.2.2 brew_1.0-6 RColorBrewer_1.1-2
[55] tools_3.5.1 glue_1.3.0 purrr_0.2.5
[58] hms_0.4.2 Rook_1.1-1 processx_3.2.0
[61] pkgload_1.0.2 yaml_2.2.0 colorspace_1.3-2
[64] sessioninfo_1.1.1 memoise_1.1.0 bindr_0.1.1
Any suggestions as to how I'd fix this?