How to update rlang in R with version 1.0.5?
I hope that this one works
install_version("rlang", version = "1.0.5", repos = "http://cran.us.r-project.org")
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')
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
Package usethis is now installed, this is not an error message (you can check with library("usethis")). You can now try to reinstall rlang with the method of @LDT
It did not work so I deleted R, RStudio and some files inside storing drives and I reinstalled everything again then it worked.
Login before adding your answer.
Use of this site constitutes acceptance of our User Agreement and Privacy