8

I need to install different packages on R. The OS is ubuntu for windows. When I try "BiocManager::install("Biobase") I get the following error:

** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
mv: cannot move '/home/mark/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-Biobase/00new/Biobase' to '/home/mark/R/x86_64-pc-linux-gnu-library/3.6/Biobase': Permission denied
ERROR:   moving to final location failed

There seems to be something wrong with the permission to move certain files.. I already tried giving permission to write for everyone into the /3.6 directory, This didn't change anything.

Any solutions?

1 Answer 1

17

Apparently, this is a new feature in 3.6. But this should solve your problem:

Sys.setenv(R_INSTALL_STAGED = FALSE)

2
  • 3
    Thanks jake! Can someone comment on why this new feature was introduced? Commented Jan 17, 2020 at 2:00
  • 1
    @FedericoGiorgi See this post on the blog developer.r-project.org/Blog/public/2019/02/14/staged-install: "Staged installation is a new feature of R CMD INSTALL in R-devel, which is intended to be soon turned on by default. It isolates packages during installation time so that they are not accidentally accessed by other R sessions, which is key to correct function of parallel installation, but is relevant to any installation that may use multiple R sessions."
    – llrs
    Commented Apr 28, 2020 at 17:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.