-
Notifications
You must be signed in to change notification settings - Fork 273
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
R and Rdevel share some libpaths #54
Comments
It is on purpose as we do not want to install everything twice. The other three entries are the standard Debian layout we had since 2003 or so and which is documented elsewhere. |
@wch here is a brief 'what is where and why'
I consider the Docker containers to be 'temporary' enough so that one focused on R-devel will see use primarily of R-devel -- so this version of R can easily re-use earlier/other packages from R-release. This strikes me as easier and more lightweight than forcing each package in twice. Which you can still do simply by changing the |
@eddelbuettel thanks for the explanation. The rationale for sharing You could still allow packages installed on R-release to be used on R-devel, while also ensuring that packages installed on R-devel aren't used on R-release, by setting the libpath to: We've been bitten by R version changes in the past: when R 3.0.1 was released and CRAN started building binary packages on it, any package that contained reference class objects (including Shiny) would no longer run on R 3.0.0. This is because in R 3.0.1, they added and used a function named But as you said, this isn't a huge deal if you treat the containers as disposable, so I don't feel super strongly about it. |
Here are the libpaths for each:
This causes problems when you install packages with
Rdevel
and then load them withR
(and possibly vice versa).There are a total of 4 different directories. After running the commands above, here are the contents of each:
Here's what it looks like each one of these is used for:
R
andRdevel
.R
has this in its libpath, but nothing seems to be there. This seems to serve no purpose, though I could be wrong.R
, and packages installed via .debs, liker-cran-mass
. This directory is also inRdevel
's libpath.Rdevel
.I assume that the libpaths for
R
are OK, since it seems to be the system default. Then the problems forRdevel
's libpath,c("/usr/local/lib/R/site-library", "/usr/local/lib/R/library", "/usr/lib/R/library")
, are:R
.Rdevel
is version 3.2. However, most, but not all of the packages in this directory are masked by /usr/local/lib/R/library.Here are couple options:
Rdevel
to just /usr/local/lib/R/libraryRdevel
to /usr/local/lib/R/site-library-devel, /usr/local/lib/R/library. You'd need to create the site-library-devel directory.The text was updated successfully, but these errors were encountered: