我正尝试在RStudio中安装软件包,但就是做不到。它一直无法安装软件包,没有出现错误或警告。
我之前在安装texlive-full时遇到了问题,可能对我的/etc/apt/soures.list.d文件做了一些尴尬的事情。我遇到了以下问题:
install.packages('rstanarm')
Warning in install.packages :
unable to access index for repository https://cloud.r-
project.org/src/contrib:
cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES这是在另一个堆栈溢出线程中解决的:Unable to install packages in latest version of RStudio and R Version.3.1.1
运行时: install.packages('rstanarm',repos== T,,rstanarm‘http://cran.rstudio.com/’)
R失败并返回错误:
ERROR: failed to lock directory ‘[...]/R/x86_64-pc-linux-gnu-
library/3.6’ for modifying
Try removing ‘[...]/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-
rstanarm’在stackoverflow中,我再次尝试了R install.packages returns "failed to create lock directory"
和运行
install.packages('rstanarm', dependencies = T, ,
repos='http://cran.rstudio.com/', INSTALL_opts = c('--no-lock'))导致RStudio在安装过程中崩溃和关闭。
其他包也会发生这种情况。我已经在这上面花了几个小时,并且处于放弃的边缘。有谁知道可能会发生什么吗?
非常感谢!
发布于 2019-06-27 12:23:37
r-project.org的域名服务器已关闭或暂时没有该域名的记录( 0426UTC,27JUN2019):
<pre>
$ dig @ns2.wu-wien.ac.at r-project.org
; <<>> DiG 9.11.3-1ubuntu1.8-Ubuntu <<>> @ns2.wu-wien.ac.at r-project.org
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
$ dig @ns6.gandi.net r-project.org
; <<>> DiG 9.11.3-1ubuntu1.8-Ubuntu <<>> @ns6.gandi.net r-project.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 52927
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;r-project.org. IN A
;; Query time: 347 msec
;; SERVER: 217.70.177.40#53(217.70.177.40)
;; WHEN: Thu Jun 27 14:24:08 AEST 2019
;; MSG SIZE rcvd: 42
$ dig @ns1.wu-wien.ac.at r-project.org
; <<>> DiG 9.11.3-1ubuntu1.8-Ubuntu <<>> @ns1.wu-wien.ac.at r-project.org
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
</pre>
发布于 2019-06-27 04:57:54
确保您可以访问Cran org站点。它似乎已经下跌了一天很多。我得到的提示是:“找不到crent.r-project.org的服务器IP地址。”
发布于 2019-06-27 05:30:59
我可以看到您使用的是R版本3.6,我建议从https://cran.r-project.org/bin/windows/base/old/降级到版本3.5.3
在使用v3.6时,我也遇到了一些其他函数的问题。如果这有帮助,请告诉我。
最佳,莫斯塔法·洛特菲
https://stackoverflow.com/questions/56780320
复制相似问题