Entering edit mode
2.1 years ago
Amr
▴
180
How to update rlang in R with version 1.0.5?
How to update rlang in R with version 1.0.5?
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
I hope that this one works
I got that error:
Error: package or namespace load failed for ‘usethis’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 1.0.3 is already loaded, but >= 1.0.5 is required Failed with error: ‘package ‘usethis’ could not be loaded’ Error in install_version("rlang", version = "1.0.5", repos = "http://cran.us.r-project.org") : could not find function "install_version"
You need to install first the devtools package :) I am updating the answer
It doesnot work
Could you be more precise than "it does not work" ? At least you should give any error message you have
Error: package ‘usethis’ could not be loaded
So, I installed usethis with install.packages ('usethis')
I got that error:
Installing package into ‘C:/Users/Amr/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/usethis_2.1.6.zip' Content type 'application/zip' length 817921 bytes (798 KB) downloaded 798 KB
package ‘usethis’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\Amr\AppData\Local\Temp\RtmpUvSZ2w\downloaded_packages
Package
usethis
is now installed, this is not an error message (you can check withlibrary("usethis")
). You can now try to reinstallrlang
with the method of @LDTIt did not work so I deleted R, RStudio and some files inside storing drives and I reinstalled everything again then it worked.