If I have an .Rprofile
line with
requireNamespace("prompt", quietly = TRUE)
RStudio fails to load and gives the error:
The R session had a fatal error.
ERROR r error 4 (R code execution error) [errormsg=Error: option error has NULL value
]; OCCURRED AT: rstudio::core::Error rstudio::r::exec::executeSafely(rstudio_boost::function<void()>) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/r/RExec.cpp:224
- I can run
requireNamespace("prompt", quietly = TRUE)
in my R console within RStudio without any errors. It's just the.Rprofile
bit - RStudio v1.2.1511
sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
locale:
[1] LC_CTYPE=en_GB.UTF-8
[2] LC_NUMERIC=C
[3] LC_TIME=en_GB.UTF-8
[4] LC_COLLATE=en_GB.UTF-8
[5] LC_MONETARY=en_GB.UTF-8
[6] LC_MESSAGES=en_GB.UTF-8
[7] LC_PAPER=en_GB.UTF-8
[8] LC_NAME=C
[9] LC_ADDRESS=C
[10] LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8
[12] LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices
[4] utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] compiler_3.6.0 prettycode_1.0.2
[3] tools_3.6.0 withr_2.1.2
[5] colorout_1.2-0 rstudioapi_0.10
[7] memoise_1.1.0 crayon_1.3.4
[9] digest_0.6.18 rlang_0.3.4
[11] fortunes_1.5-4