R语言下载devtools包时 需要载入usethis包,installs.packages()成功后,library还是不行 ,有解决办法吗,愁死我了啊
,用的R版本是4.1.3,Rtools也下载了
> library(devtools)
载入需要的程辑包:usethis
Error: package or namespace load failed for ‘usethis’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/QC/Documents/R/win-library/4.1/rlang/libs/x64/rlang.dll':
LoadLibrary failure: 找不到指定的程序。
Error: 无法载入程辑包‘usethis’
> if(! require("usethis")) install.packages("usethis")
载入需要的程辑包:usethis
Error: package or namespace load failed for ‘usethis’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/QC/Documents/R/win-library/4.1/rlang/libs/x64/rlang.dll':
LoadLibrary failure: 找不到指定的程序。
将程序包安装入‘C:/Users/QC/Documents/R/win-library/4.1’
(因为‘lib’没有被指定)
trying URL 'https://mirror.lzu.edu.cn/CRAN/bin/windows/contrib/4.1/usethis_2.1.6.zip'
Content type 'application/zip' length 818854 bytes (799 KB)
downloaded 799 KB
package ‘usethis’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\QC\AppData\Local\Temp\RtmpAfiXjZ\downloaded_packages
> library(usethis)
Error: package or namespace load failed for ‘usethis’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/QC/Documents/R/win-library/4.1/rlang/libs/x64/rlang.dll':
LoadLibrary failure: 找不到指定的程序。
```