Hi, could anyone give ideas for my error in installing tidyverse package? I downloaded updates below, already installed R-Tool.
But I still got messages below:
install.packages(c("curl", "purrr", "Rcpp", "rlang", "scales"))
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
......
The downloaded binary packages are in
C:\Users\Patrecia\AppData\Local\Temp\Rtmpovlfyh\downloaded_packages
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘rlang’ 0.4.0 is already loaded, but >= 0.4.1 is required
Thanks!
Apparently Ive done both steps, re-do it again, still similar results..
install.packages("rlang")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘rlang’
Warning in install.packages :
problem copying C:\Users\Patrecia\Documents\R\win-library\3.6\00LOCK\rlang\libs\x64\rlang.dll to C:\Users\Patrecia\Documents\R\win-library\3.6\rlang\libs\x64\rlang.dll: Permission denied
Warning in install.packages :
restored ‘rlang’
The downloaded binary packages are in
C:\Users\Patrecia\AppData\Local\Temp\RtmpemuA1p\downloaded_packages
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘rlang’ 0.4.0 is already loaded, but >= 0.4.1 is required
Are you sure you are installing Rtools successfully? Don't you get any error message while installing?
You are not being able to update rlangbecause it needs to be compiled and R is not being able to find the compiler in your system (i.e. Rtools).
install.packages("rlang")
Error in install.packages : Updating loaded packages
install.packages("rlang")
Error in install.packages : Updating loaded packages
Restarting R session...
install.packages("rlang")
Error in install.packages : Updating loaded packages
install.packages("rlang")
Installing package into ‘C:/Users/Patrecia/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.2.zip'
Content type 'application/zip' length 1113577 bytes (1.1 MB)
downloaded 1.1 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘rlang’
Warning in install.packages :
problem copying C:\Users\Patrecia\Documents\R\win-library\3.6\00LOCK\rlang\libs\x64\rlang.dll to C:\Users\Patrecia\Documents\R\win-library\3.6\rlang\libs\x64\rlang.dll: Permission denied
Warning in install.packages :
restored ‘rlang’
The downloaded binary packages are in
C:\Users\Patrecia\AppData\Local\Temp\RtmpK0PwtS\downloaded_packages
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘rlang’ 0.4.0 is already loaded, but >= 0.4.1 is required