Hi! I have problems when I am trying to update some packages such as "devtools", "nlme", "rstan", "rstanarm" and "stringi".
When I am trying to update, always appear this message. - in this case with stringi -
install.packages("stringi")
There is a binary version available but the source version is later:
binary source needs_compilation
stringi 1.4.4 1.4.6 TRUE
installing the source package ‘stringi’
trying URL 'https://cran.rstudio.com/src/contrib/stringi_1.4.6.tar.gz'
Content type 'application/x-gzip' length 7284354 bytes (6.9 MB)
downloaded 6.9 MB
* installing *source* package 'stringi' ...
** package 'stringi' successfully unpacked and MD5 sums checked
ERROR: cannot remove earlier installation, is it in use?
* removing 'C:/Users/alim/Documents/R/R-3.6.1/library/stringi'
* restoring previous 'C:/Users/alim/Documents/R/R-3.6.1/library/stringi'
Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
problema al copiar C:\Users\alim\Documents\R\R-3.6.1\library\00LOCK-stringi\stringi\libs\icudt61l.dat a C:\Users\alim\Documents\R\R-3.6.1\library\stringi\libs\icudt61l.dat: Invalid argument
Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
problema al copiar C:\Users\alim\Documents\R\R-3.6.1\library\00LOCK-stringi\stringi\libs\x64\stringi.dll a C:\Users\alim\Documents\R\R-3.6.1\library\stringi\libs\x64\stringi.dll: Permission denied
Warning in install.packages :
installation of package ‘stringi’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\alim\AppData\Local\Temp\Rtmp0M9VF9\downloaded_packages’
I tried everthing, removing the 00LOCK folder, removing the package and reinstalling it, But I obtain the same result.
Did I something wrong? There is something that I missed? How can I interpret the error?
Regards.