r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
498 stars 136 forks source link

Fail to install in R4.1.0(win11) #1624

Closed awtexcv closed 1 year ago

awtexcv commented 1 year ago

I downloaded rlang1.1.1 from https://cran.r-project.org/web/packages/rlang/index.html, but i can't install it even i removed the old package.

install.packages("G:/RStudio/rlang_1.1.1.tar.gz", repos = NULL, type = "source")

Warning in file.rename(instdir, final_instdir) : cannot rename file 'G:/RStudio/library/00LOCK-rlang/00new/rlang' to 'G:/RStudio/library/rlang', reason 'permission denied.' ERROR: moving to final location failed

lionel- commented 1 year ago

I would try to solve this:

cannot rename file 'G:/RStudio/library/00LOCK-rlang/00new/rlang' to 'G:/RStudio/library/rlang', reason 'permission denied.'

Maybe try installing with pak::pak() and since you're on Windows double check you've closed all active R and RStudio sessions before installing.

awtexcv commented 1 year ago

thank you, i solved it.