Hi Community,
I am currently using R 3.5.1, and RStudio 1.1.453. I have been trying to install dplyr library. The command I use
install.packages("dplyr")
As a part of it, the dependencies should be installed automatically. However, I get an error with a couple of dependencies - like rlang. The copy of the error can be found below:
The message at the end says:
The downloaded source packages are in
‘C:\Users\ngyanch2\AppData\Local\Temp\RtmpCWJPUH\downloaded_packages’
Finally, when I try to load the library dplyr, I get the following error:
library(dplyr)
Error in library(dplyr) : there is no package called ‘dplyr’
So I tried to install rlang as a separate package, which seems to be installed, yet doesn't work:
install.packages("rlang")
There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.3.4 0.4.11 TRUE
Binaries will be installed
trying URL 'https://cran.uni-muenster.de/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:\Program Files\R\R-3.4.4\library\file2d4044371ff4\rlang’ to ‘C:\Program Files\R\R-3.4.4\library\rlang’
The downloaded binary packages are in
C:\Users\ngyanch2\AppData\Local\Temp\RtmpCWJPUH\downloaded_packages
library(rlang)
Error in library(rlang) : there is no package called ‘rlang’
To me, it also seemed like an issue of mismatching versions of rlang, which prompted me to use the command:
install.packages("https://cran.r-project.org/src/contrib/Archive/rlang/rlang_0.4.10.tar.gz", repos = NULL, type="source")
in the hope of downloading the specific version of rlang. However, that was not fruitful either as i kept getting the same error.
I am facing the same issue for multiple packages, while a friend, working with exactly same configuration is able to run the libraries.
I even tried manually pasting the library in the C drive folder for R, which gives this error:
library(rlang)
Error: package ‘rlang’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
In addition: Warning message:
package ‘rlang’ was built under R version 3.5.3
In the organization there are tight controls around the version of R that we use, so updating the versions is not an option. I still wonder how my friend is able to use the same package with exact same configurations.
Please assist.