-
Notifications
You must be signed in to change notification settings - Fork 22
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
Multiple installations of the same R version #63
Comments
Unfortunately it is not that simple, because all shared libraries are hard-wired to link to the original installation:
This is even true for non-base CRAN packages:
So you would need to modify these paths using OTOH, you don't need two separate R installations if the only difference is in the user package libraries. You can modify |
Thanks, I would not have worked that out! I know that you can use |
Yes, #66 is basically what you want, multiple user libraries for the same R version. We'll have that soon. |
FYI: the pre-release at https://github.com/r-lib/rig/releases/tag/v0.3.1pre now supports multiple libraries and switching between them. This is currently an experimental feature and it might change in the future. Feedback is welcome. |
I have only started using it but works perfectly so far (I like the menu bar app as well) 🎉! Thanks for working on this so quickly. |
I am going to close this now. If we need more features related to this we'll create new issues. |
Hi
Thanks for the great tool, I think this will make lots of people's lives easier 🎉 ! I have been playing around with getting two installations of the same R version to work. Probably a fairly niche thing so not suggesting you add it as a feature (unless there is demand) but thought I would post my solution in case it was helpful to anyone (and in case there are issues I haven't come across yet). My use case is to have two versions of R 4.2 installed, one with Bioconductor release (for analysis) and one with Bioconductor devel (for development) and to be able to switch between the two as needed.
These are the steps that worked for me on MacOS:
Search for all occurrences of the installed R version and modify them to match the new path (eg. change all
4.2
to4.2-bioc
)Renviron
file to set the default user library pathFind where
R_LIBS_USER
is set and modify it to point to the new installation directory.(I feel like there should be a way to do this without hard coding a path but haven't really looked into it)
After this I am able to switch between
4.2
and4.2-bioc
with both installations having.libPaths()
correctly set to different directories. You probably lose the ability to make updates for new R versions but worth it for me to be able to easily switch between these two environments.The text was updated successfully, but these errors were encountered: