ERROR: failed to create lock directory ‘/home/me/src/Rlibs/00LOCK-Rcpp’
The best way to avoid this is to use the '--no-lock' argument on the command line, e.g.,
R CMD INSTALL --no-lock <pkg>
On NFS file systems it is sometimes not obvious what things you have to close. From within R, you can do this from within your command using:
install.packages("Rcpp", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
down vote
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)