| Summary: | R CMD INSTALL doesn't work without admin privileges | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pierre-YvesChibon <pingou> |
| Component: | R | Assignee: | Tom "spot" Callaway <tcallawa> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | michel, tcallawa |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-01 07:54:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Pierre-YvesChibon
2011-10-01 07:29:50 UTC
R CMD INSTALL, by default, installs packages in the library tree rooted at the first directory in .libPaths() for an R session run in the current environment .libPaths is used for getting or setting the library trees that R knows about (and hence uses when looking for packages). The library search path is initialized at startup from the environment variable R_LIBS (which should be a colon-separated list of directories at which R library trees are rooted) followed by those in environment variable R_LIBS_USER. Only directories which exist at the time will be included. By default R_LIBS is unset, and R_LIBS_USER is set to directory ‘R/R.version$platform-library/x.y’ of the home directory, for R x.y.z. Or, to put it succinctly, R CMD INSTALL doesn't see the ~/R/x86_64-redhat-linux-gnu-library/2.13/ directory (because it doesn't exist). If you create it, it should show up in the .libPaths() and R CMD INSTALL should prefer it. Before: > .libPaths() [1] "/usr/lib64/R/library" "/usr/share/R/library" > Create Directory: [spot@pterodactyl ~]$ mkdir -p ~/R/x86_64-redhat-linux-gnu-library/2.13/ After: > .libPaths() [1] "/home/spot/R/x86_64-redhat-linux-gnu-library/2.13" [2] "/usr/lib64/R/library" [3] "/usr/share/R/library" |