新工作给了我一台全新的 Windows 笔记本电脑,我正在努力(至少可以说)设置全新的 R 环境。具体来说,在开发包时,命令 Install and Restart
由于特定 .dll
文件的权限问题而突然退出。
==> Rcmd.exe INSTALL --no-multiarch --with-keep.source --install-tests curl
* installing to library 'C:/R/R-Library'
* installing *source* package 'curl' ...
ERROR: cannot remove earlier installation, is it in use?
* removing 'C:/R/R-Library/curl'
* restoring previous 'C:/R/R-Library/curl'
Warning in file.copy(lp, dirname(pkgdir), recursive = TRUE, copy.date = TRUE) :
problem copying C:\R\R-Library\00LOCK-curl\curl\libs\x64\curl.dll to C:\R\R-Library\curl\libs\x64\curl.dll: Permission denied
Exited with status 1.
作为改善该问题的第一次尝试,我已将 R 安装和库移至 C:/
。这显然还不够。
> .libPaths()
[1] "C:/R/R-Library" "C:/R/R-4.0.3/library"
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252 LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.0.3 tools_4.0.3
我有点不知道下一步该往哪里看。作为黑暗中的最后一击,我尝试使用管理员权限运行 RStudio,但没有成功。