RStudio and prompt package

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
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/
LAPACK: /usr/lib/x86_64-linux-gnu/

 [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            

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  

This is due to a change in R 3.6 interacting with some code in RStudio. It's not specific to the prompt package. The patch has been merged into RStudio's master branch, and I think it will be in a 1.2 patch release, but I don't know if that has come out yet.

Edit) As noted here, nightly builds have the patch and a preview release will come available soon-ish


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.