Entering edit mode
4.7 years ago
Rishabh Jha
▴
10
I have been using Rstudio Cloud as of now. On installing packages it says "Installation path not writable" and in some says "non zero exit status". If anyone could help In troubleshooting this problem. I would be so thankful.
BiocManager::install("class")
Bioconductor version 3.10 (BiocManager 1.30.10), R 3.6.0 (2019-04-26)
Installing package(s) 'class'
trying URL 'http://package-proxy/src/contrib/class_7.3-17.tar.gz'
Content type 'application/x-tar' length 95221 bytes (92 KB)
==================================================
downloaded 92 KB
* installing *binary* package ‘class’ ...
* DONE (class)
The downloaded source packages are in
‘/tmp/Rtmpxw0Bib/downloaded_packages’
Installation path not writeable, unable to update packages: boot, class, cluster,
KernSmooth, lattice, MASS, Matrix, mgcv, nlme, nnet, spatial, survival
BiocManager::install("org.Mm.eg.db", lib = "/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/")
Bioconductor version 3.10 (BiocManager 1.30.10), R 3.6.0 (2019-04-26)
Installing package(s) 'org.Mm.eg.db'
trying URL 'https://bioconductor.org/packages/3.10/data/annotation/src/contrib/org.Mm.eg.db_3.10.0.tar.gz'
Content type 'application/x-gzip' length 72221575 bytes (68.9 MB)
==================================================
downloaded 68.9 MB
* installing *source* package ‘org.Mm.eg.db’ ...
** using staged installation
** R
** inst
Warning in file.append(to[okay], from[okay]) :
write error during file append
** byte-compile and prepare package for lazy loading
Error in lazyLoadDBinsertValue(data, datafile, ascii, compress, envhook) :
write failed
Calls: <Anonymous> ... lazyLoadDBinsertVariable -> <Anonymous> -> lazyLoadDBinsertValue
Execution halted
ERROR: lazy loading failed for package ‘org.Mm.eg.db’
* removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/org.Mm.eg.db’
The downloaded source packages are in
‘/tmp/Rtmpxw0Bib/downloaded_packages’
Warning message:
In install.packages(...) :
installation of package ‘org.Mm.eg.db’ had non-zero exit status
type
.libPaths()
make sure you have ownership & write permission to all those directoriessudo chown -R $USER:$USER /home/rstudio-user/R/
sudo chmod -R +w /home/rstudio-user/R/