How to update rlang in R?
0
0
Entering edit mode
2.2 years ago
Amr ▴ 180

How to update rlang in R with version 1.0.5?

rlang R • 18k views
ADD COMMENT
0
Entering edit mode

I hope that this one works

install.packages("devtools")
library(devtools)
install_version("rlang", version = "1.0.5", repos = "http://cran.us.r-project.org")
ADD REPLY
1
Entering edit mode

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"

ADD REPLY
0
Entering edit mode

You need to install first the devtools package :) I am updating the answer

ADD REPLY
0
Entering edit mode

It doesnot work

ADD REPLY
0
Entering edit mode

Could you be more precise than "it does not work" ? At least you should give any error message you have

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

It did not work so I deleted R, RStudio and some files inside storing drives and I reinstalled everything again then it worked.

ADD REPLY

Login before adding your answer.

Traffic: 1692 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6