r-lib / rlang

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

!error in pak subprocess #1634

Open PhilicJone opened 1 year ago

PhilicJone commented 1 year ago

I encountered this error when installing rlang with “pak::pkg_install("r-lib/rlang")”

pak::pkg_install("r-lib/rlang") Error: ! error in pak subprocess Caused by error in loadNamespace(name): ! 不存在叫'pkgdepends'这个名字的程辑包 Type .Last.error to see the more details.

lionel- commented 1 year ago

There is an issue on your side. Is this with Windows? If so try closing all R and RStudio sessions running on your computer, start a fresh one, then try installing again.

! 不存在叫'pkgdepends'这个名字的程辑包

Can you translate please?

psychelzh commented 1 year ago

I am Chinese, and this line

! 不存在叫'pkgdepends'这个名字的程辑包

translates into English is:

! there is no package called 'pkgdepends'

This is probably related to the path where the package is installed. For example, if the path has a 'space', this error will be raised.