Description of issue -
I have R-4.3.1 and R-4.3.2 installed from source in ~/R with libraries in R/x86_64-pc-linux-gnu-library/4.3. My OS is POP!_OS 22.04 (a variant of Ubuntu 22.04).
I have the R shell wrapper script at
~$ which R
/usr/local/bin/R
I get no error messages, but R started from the shell runs R-4.3.2 , while RStudio runs R-4.3.1.
Furthermore, if I go to the terminal in RStudi and try to start an R session, it failes with these errors
$ R
WARNING: ignoring environment value of R_HOME
/usr/bin/R: line 249: /home/jcarson/R/etc/ldpaths: No such file or directory
/usr/bin/R: line 272: /home/jcarson/R/bin/exec/R: No such file or directory
System Information:
RStudio Desktop
2023.09.1 Build 494
sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Pop!_OS 22.04 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: America/Denver
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.3.2 fastmap_1.1.1 cli_3.6.1 htmltools_0.5.7 tools_4.3.2 rstudioapi_0.15.0
[7] yaml_2.3.7 rmarkdown_2.25 knitr_1.45 digest_0.6.33 xfun_0.41 rlang_1.1.2
[13] evaluate_0.23
Referred here from support.rstudio.com