Trouble installing glmmTMB - r

I was using glmmTMB on a cluster. It was working for several weeks. I logged on today and it says I need to install glmmTMB. So, I tried that, but R is giving me the error below.
The main part says: failed to lock directory.
Thanks for any advice.
Installing package into ‘/home/xxxxxx/R/x86_64-redhat-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/glmmTMB_1.1.2.3.tar.gz'
Content type 'application/x-gzip' length 3910643 bytes (3.7 MB)
==================================================
downloaded 3.7 MB
ERROR: failed to lock directory ‘/home/xxxxxx/R/x86_64-redhat-linux-gnu-library/4.0’ for modifying
Try removing ‘/home/xxxxxx/R/x86_64-redhat-linux-gnu-library/4.0/00LOCK-glmmTMB’
Warning in install.packages :
installation of package ‘glmmTMB’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpYJgfa7/downloaded_packages’

Related

why am i not able to install any package?

since 2 days ago Whenever i try to insrall a package R gives me this error:
package installation in ‘C:/Users/Win10/AppData/Local/R/win-library/4.2’
(because ‘lib’ is not specified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/dplyr_1.0.10.zip'
Content type 'application/zip' length 1306071 bytes (1.2 MB)
downloaded 1.2 MB
package ‘dplyr’ opened with success with sum cntrol MD5
Error in install.packages : ERROR: faild change lock for the directory ‘C:\Users\Win10\AppData\Local\R\win-library\4.2’
Removal ‘C:\Users\Win10\AppData\Local\R\win-library\4.2/00LOCK’
i try to reinstall R and to remove "00LOCK"

Having problems installing.packag("BatchGetSymbols")

I can't install.package("BatchGetSymbols") for some reason.
I am just doing this:
install.packages('BatchGetSymbols')
library(BatchGetSymbols)
and i am getting this:
> install.packages('BatchGetSymbols')
Installing package into ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘XML’ is not available
trying URL 'https://cran.rstudio.com/src/contrib/BatchGetSymbols_2.5.7.tar.gz'
Content type 'application/x-gzip' length 181321 bytes (177 KB)
==================================================
downloaded 177 KB
ERROR: dependency ‘XML’ is not available for package ‘BatchGetSymbols’
* removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.6/BatchGetSymbols’
Warning in install.packages :
installation of package ‘BatchGetSymbols’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpAhaAos/downloaded_packages’
> library(BatchGetSymbols)
Error in library(BatchGetSymbols) :
there is no package called ‘BatchGetSymbols’
Does anyone understand why there is a problem??
Install the latest version of R before
Commands to install: https://cloud.r-project.org/bin/linux/
Choose the version of your system and run the commands
After that try to install the library.

Error in installing 'dplyr' package - has non-zero exit status

When I invoke
install.packages("dplyr")
this is what shows up:
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://mran.microsoft.com/snapshot/2019-07-05/src/contrib/dplyr_0.8.3.tar.gz'
Content type 'application/octet-stream' length 1173098 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
ERROR: failed to lock directory ‘/usr/local/lib/R/site-library’ for modifying
Try removing ‘/usr/local/lib/R/site-library/00LOCK-dplyr’
Warning in install.packages :
installation of package ‘dplyr’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpDn3GWa/downloaded_packages’
It also looks like this dplyr package is no longer in my User Library.
Please help! Other installation of packages seem to be working fine. I have no idea what's going on because I have always had no issues with this package until today and I desperately need this for my final next week.
Thanks!
All of what i'm posting here is provinient on the link, post here for resume:
install.packages("Rcpp", dependencies = TRUE, INSTALL_opts = '--no-lock')
Why this happens ?
This happens when your last package installation has interrupted abnormally. to fix this you should remove the locked file. For example Execute this command in R console:
unlink("/home/me/src/Rlibs/00LOCK-Rcpp", recursive = TRUE)
R install.packages returns "failed to create lock directory"

Fail to install the "tidyverse" package

I am creating a plot using the ggplot() function in R Studio. For doing the job, I need to install the "tidyverse" package, but find installation failure. I will appreciate if you could solve the problem. The error messages are displayed in the console pane:
install.packages("tidyverse")
Installing package into ‘C:/Users/cheol/OneDrive/문서/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependency ‘purrr’
trying URL 'https://cran.cnr.berkeley.edu/bin/windows/contrib/3.6/purrr_0.3.3.zip'
Content type 'application/zip' length 426130 bytes (416 KB)
downloaded 416 KB
trying URL 'https://cran.cnr.berkeley.edu/bin/windows/contrib/3.6/tidyverse_1.3.0.zip'
Content type 'application/zip' length 440226 bytes (429 KB)
downloaded 429 KB
package ‘purrr’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\cheol\OneDrive\문서\R\win-library\3.6’ for modifying
Try removing ‘C:\Users\cheol\OneDrive\문서\R\win-library\3.6/00LOCK’

there is no package called 'BiocInstaller'

Whenever I try to install a new package I'm getting this error:
source("http://bioconductor.org/biocLite.R")
Warning in install.packages :
package ‘BiocInstaller’ is not available (for R version 3.0.2 RC)
Installing package into ‘/home/hd-master/R/x86_64-unknown-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://www.bioconductor.org/packages/2.13/bioc/src/contrib/BiocInstaller_1.12.0.tar.gz'
Content type 'application/x-gzip' length 13509 bytes (13 Kb)
opened URL
==================================================
downloaded 13 Kb
Error in library(BiocInstaller) :
there is no package called 'BiocInstaller'
Execution halted
Install R-3.0.2 (not RC).
Try starting R as follows: R --vanilla
See if you are pointing to a weird mirror. What is the output of getOption("repos")?
Try this: install.packages("BiocInstaller", repos="http://bioconductor.org/packages/2.13/bioc")

Resources