Comments (6)
Yes, #66 is basically what you want, multiple user libraries for the same R version. We'll have that soon.
from rig.
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.
from rig.
Unfortunately it is not that simple, because all shared libraries are hard-wired to link to the original installation:
❯ otool -L /Library/Frameworks/R.framework/Versions/4.1/Resources/library/stats/libs/stats.so
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/stats/libs/stats.so:
stats.so (compatibility version 0.0.0, current version 0.0.0)
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib (compatibility version 4.1.0, current version 4.1.3)
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.dylib (compatibility version 0.0.0, current version 0.0.0)
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libgfortran.5.dylib (compatibility version 6.0.0, current version 6.0.0)
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib (compatibility version 4.1.0, current version 4.1.3)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1673.126.0)
This is even true for non-base CRAN packages:
❯ R-4.1 -q -e '.libPaths()[1]'
> .libPaths()[1]
[1] "/Users/gaborcsardi/Library/R/x86_64/4.1/library"
❯ otool -L /Users/gaborcsardi/Library/R/x86_64/4.1/library/filelock/libs/filelock.so
/Users/gaborcsardi/Library/R/x86_64/4.1/library/filelock/libs/filelock.so:
filelock.so (compatibility version 0.0.0, current version 0.0.0)
/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib (compatibility version 4.1.0, current version 4.1.2)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1853.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
So you would need to modify these paths using install_name_tool
for every shared lib in base R, and then also after every single package installation.
OTOH, you don't need two separate R installations if the only difference is in the user package libraries. You can modify R_LIBS_USER
in .Renviron
to switch between two user libraries.
from rig.
Thanks, I would not have worked that out! I know that you can use .Renviron
but I have found that to be more work in the past, particularly when using RStudio. I had a similar setup with two R installations that worked fine with the rswitch tool. I was hoping to be able to do the same thing here but maybe the extra things you have built around the installation make that impossible and I should just go back to what I had before.
from rig.
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.
from rig.
I am going to close this now. If we need more features related to this we'll create new issues.
from rig.
Related Issues (20)
- Can't run rig on gentoo HOT 1
- Why does rig require sudo to work? HOT 1
- Multiple RStudio sessions with different R versions (feature request) HOT 5
- linux: rig add release leads to [ERROR] Failed to resolve R version HOT 4
- How to add existing R installation to rig HOT 3
- "R 4.4.0 development version" how to use? HOT 2
- Failed to to install pak HOT 14
- Rig 0.7.0 does not work with Proxy and Internal CA Certs on MacOS HOT 4
- Rig's R install fails at Pak Install Stage on Ubuntu 20.04 with "Failed to find user HOME" HOT 2
- `rig add release` in Windows fails with "Server Error: Setting token failed." HOT 7
- Do not hardcode PPM support
- rig library (add|default) panic HOT 1
- R 4.4 retains `devel` alias, even though it has also gained the `release` alias HOT 3
- API calls failing for Fedora 40, prevents use of rig add HOT 3
- Updata aliases manually HOT 2
- Installing already installed R version HOT 1
- Error installing on Mac HOT 6
- Integration with [Positron](https://github.com/posit-dev/positron)? HOT 2
- Install R versions on user space for Windows?
- panic with `rig library default <foo>`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rig.