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?
Apparently, this is a new feature in 3.6. But this should solve your problem:
Sys.setenv(R_INSTALL_STAGED = FALSE)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With