I have a problem installing packages in R.
install.packages('rlang')
Installing package into ‘C:/Users/durandeb/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.3.4 0.4.7 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘C:\Users\durandeb\Documents\R\win-library\3.4\file33204d29164f\rlang’ to ‘C:\Users\durandeb\Documents\R\win-library\3.4\rlang’
The downloaded binary packages are in
C:\Users\durandeb\AppData\Local\Temp\4\RtmpETJiDu\downloaded_packages
the package ends up saving it in a temporary library
How can I assign the default library? It does not allow me to install on any route.
> .libPaths()
[1] "C:/Users/durandeb/Documents/R/win-library/3.4" "C:/Program Files/R/R-3.4.2/library"
install.packages('rlang',lib = "C:/Users/durandeb/Documents/R/win-library/3.4")
There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.3.4 0.4.7 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘C:\Users\durandeb\Documents\R\win-library\3.4\file332019c556fd\rlang’ to ‘C:\Users\durandeb\Documents\R\win-library\3.4\rlang’
The downloaded binary packages are in
C:\Users\durandeb\AppData\Local\Temp\4\RtmpETJiDu\downloaded_packages
Can you help me with a step by step of how to resolve this error? I use Windows 10, I don't have administrator permissions, but I do have write permission for the mentioned folders.