New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RStudio will not run with R installed in location other than /usr/bin #13184
Comments
I think it is an issue with the path verification for |
Could it simply check the user's native environment? |
I think this is just an incorrect file path that is created. It likely slipped past testing because the customized install location scenario wasn't tested. Using |
Do we need to find the place in the code where that is happening, or do you think RStudio will do it? @cm421 @MariaSemple |
I don't think that's true? A regular R installation on my Ubuntu VM has:
And indeed that's a directory where R's components have been installed:
and so
but there is also a symlink at @abalter's error logs have:
which makes me think this is an issue with the R (micromamba?) installation. @abalter, what does |
(base) balter@expiyes:~$ Rscript -e "print(R.home())" |
That looks correct to me; we'll probably have to investigate further to understand what's going wrong. |
Ah yes, |
Hi all, so we are having similar issues with rsutdio > 2022.04 - any R version that is installed in a conda environment and that is called fine in the terminal does not get started up by rstudio. So I looked at the 2023.06 logs and what I got was the following:
It seems everything is being selected correctly but the rsession that is launched does not have a config file (?) and that seems to cause it to start the standard R version installed instead. Any ideas? |
I would like to note that
To manage expectations for the many RStudio users suffering from the libR.so problem, could one of the RStudio developers please comment on where fixing this sits in the development priority list? I don't know how many of the developers I tagged in this post actually work for Posit, as in actually get paid for their work. But this is a pretty significant bug IMO, and I'm eager to see it fixed. |
Just for completeness I just checked the daily rstudio build and that cannot deal with multiple Rs properly either. |
I had the same problem with rstudio 2023.06.0 build 421 and conda installed R 4.2.3. my temporary hack is to create soft links for all .so libraries under /usr/lib/ . with
|
Could this please be moved to a proper release milestone? Linux users of Conda R have not had a compatible release of RStudio in over a year now. |
We're planning to tackle this in the first RStudio release of 2024. Thanks all for the patience! |
Thanks for the update! |
Perhaps rstudio-server cannot access some files in the virtual environment. An alternative:
And edit file
|
Note: Conda includes a patch to their R installation that ensures
See: This causes problems for RStudio, since normally we'd be able to find the requested libraries using that script. RStudio starts fine if I remove that preamble, so to make this work we'll have to work around Anaconda's patch. |
RStudio Server: Verified in 2024.04.0-daily+593 on Ubuntu 22.04.
RStudio Desktop: I'm not able to reproduce the problem in both Ubuntu 22.04 and Red Hat 9, so I can't claim that it's working because it's fixed. Would any of y'all be willing to try out one of the latest RStudio 2024.04.0 Chocolate Cosmos dailies and check if the problem is fixed? Please note that these are meant for testing and development only, not production. |
I was able to repro the problem on Ubuntu 22 as follows:
Then, verified the fix:
|
On Ubuntu 22.04.1:
R installed globally via asdf: $ R
R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> R.home()
[1] "/home/USER/.asdf/installs/r/4.3.1/lib/R"
>
$ R
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> R.home()
[1] "/home/USER/.asdf/installs/r/4.3.3/lib/R"
>
Save workspace image? [y/n/c]: n |
Did you configure R with
? |
@kevinushey I re-installed RStudio with |
Awesome, glad to hear that resolved the issue -- thanks for reporting back! |
System details
Steps to reproduce the problem
Describe the problem in detail
I have tried downloading and installing multiple versions of rstudio desktop including the current stable (as shown above) and others from the dailies. None of them will open. I get an error about not being able to find
libR.so
.This is the same behavior as in #12508. Furthermore, if I google this problem of rstudio not being able to find
libR.so
it seems to be very common.I have included my session startup failure report at the bottom.
I have tried setting R library paths with a .Renviron file and with not using one.
Describe the behavior you expected
RStudio would start.
R Session Startup Failure Report
RStudio Version
RStudio 2023.03.1+446 "Cherry Blossom " (6e31ffc, 2023-05-09) for Ubuntu Jammy
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2023.03.1+446 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36
Error message
[No error available]
Process Output
The R session exited with code 127.
Error output:
Standard output:
Logs
/home/balter/.local/share/rstudio/log/rsession-balter.log
The text was updated successfully, but these errors were encountered: