Closed rbutleriii closed 1 year ago
We do not have much control over the install.packages
behavior.
You should get a prompt (if running interactively) to create a personal
library, e.g. :
Would you like to create a personal library
'/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1'
to install packages into? (yes/No/cancel) y
If you're running non-interactive, then make sure that the folder is write-able before installing packages.
It would be good to get a fully reproducible example (maybe using tempfile()
& libPaths()
to configure something appropriate?), but doesn't install.packages()
'do the right thing' when respondingto the prompt, i.e., creating a personal library and using that for installation, where BiocManager seems to be trying to install into the original directory?
In trying to reproduce on a different system it is a system issue. The system has Lmod
configured to point to a location for R_LIBS_USER
that is not writable, so bioconductor asks for a yes/no, but already has the lib
destination defined.
When installing to a local dir,
BiocManager
doesn't point to the default$HOME/R/...
for a personal library, nor does it prompt you to enter in a personal library path. I can specify the lib well enough beforehand, but that makes the prompt pointless.