Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bitdefender错误:install.packages:lib=中的警告不可写_R_Rstudio - Fatal编程技术网

Bitdefender错误:install.packages:lib=中的警告不可写

Bitdefender错误:install.packages:lib=中的警告不可写,r,rstudio,R,Rstudio,我不小心把我的图书馆拆开了 unlink(C:/Users/.../R/win-library/3.6") 所以我重新安装了R和R工作室。从这以后,我有很多麻烦。如果我想安装一个软件包,例如 install.packages("haven") 或 我得到这个信息: WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the ap

我不小心把我的图书馆拆开了

unlink(C:/Users/.../R/win-library/3.6")
所以我重新安装了R和R工作室。从这以后,我有很多麻烦。如果我想安装一个软件包,例如

install.packages("haven") 

我得到这个信息:

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

Error in install.packages : cannot open file 'C:/Users/.../R/win-library/3.6/file2d6465c81796/backports/DESCRIPTION': Permission denied
在过去,我安装并重新安装了R几次,但我从未遇到过这些问题。因此,它一定与我以前执行的
取消链接操作有关。此外,如果我想安装软件包(例如,
haven
),R会安装大量额外的软件包


Bitdefender就是原因,我上次安装R和R studio后就安装了它。您必须更改security(Schutz)-->secure files(Sichere Dateien)-->application access(Anwendungszugriff)中的设置,并启用R和RStudio(如果Bitdefender中的英语含义与我的德语版本不同,请编辑此设置)

您是否尝试按照错误消息的建议重新安装Rtools?解决“权限被拒绝”的方法是使用
sudo R
从终端启动R,然后安装您的软件包。您可以返回Rstudio使用该软件包。难看,但能帮我完成任务。@Chelmy88:不,如果我安装了RTools,一切都不会改变。@haci:是的,我在这里读到了这个补丁:。然而,我以前从未遇到过这个问题。所以一定有什么改变了。
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

Error in install.packages : cannot open file 'C:/Users/.../R/win-library/3.6/file2d6465c81796/backports/DESCRIPTION': Permission denied
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/.../R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘backports’, ‘digest’, ‘glue’, ‘zeallot’, ‘assertthat’, ‘utf8’, ‘ellipsis’, ‘magrittr’, ‘rlang’, ‘pkgconfig’, ‘vctrs’, ‘R6’, ‘clipr’, ‘crayon’, ‘BH’, ‘cli’, ‘fansi’, ‘pillar’, ‘forcats’, ‘hms’, ‘Rcpp’, ‘readr’, ‘tibble’


sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252 LC_NUMERIC=C                   
[5] LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.6.1 tools_3.6.1