无法在R中安装软件包 [英] Unable to install a package package in R
问题描述
我正在将 rstudio 的问题与 r version 3.6.2
的问题.我已经提到了这个此处
I am using rstudio with an r version 3.6.2
. I already referred this post in forum but doesn't seem to help. The package can be found here
我正在尝试安装aphrodite 软件包,但是不幸的是,它引发错误,如下所示.我收到以下2个错误之一
I am trying to install aphrodite package but unfortunately it throws error as shown below. I get either of the below 2 errors
错误:无法从GitHub安装"Aphrodite" :(从警告转换为)无法访问存储库 https://OHDSI.github.io/drat/bin/windows/contrib/3.6 :无法打开URL'
Error: Failed to install 'Aphrodite' from GitHub: (converted from warning) unable to access index for repository https://OHDSI.github.io/drat/bin/windows/contrib/3.6: cannot open URL 'https://OHDSI.github.io/drat/bin/windows/contrib/3.6/PACKAGES'
错误:无法从GitHub安装"Aphrodite": (从警告转换为)软件包"C:/Users/test/AppData/Local/Temp/RtmpEzlckw/file29a84d6a1a43/Aphrodite_2.0.tar.gz"的安装状态为非零退出状态
Error: Failed to install 'Aphrodite' from GitHub: (converted from warning) installation of package ‘C:/Users/test/AppData/Local/Temp/RtmpEzlckw/file29a84d6a1a43/Aphrodite_2.0.tar.gz’ had non-zero exit status
有人可以帮助我解决此错误吗?我不是技术人员,但是解决此问题的任何帮助将非常有用
Can someone help me resolve this error? I am not a tech person but any help to resolve this will be very useful
推荐答案
因此,问题出在"aerror ="https://github.com/r-lib/" remotes/issues/403"rel =" nofollow noreferrer>如此处所述
So the issue turned out to be the "error converted to warning" scenario, as described here
在安装命令解决问题之前设置Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
.
Setting Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
before the install command solves the issue.
这篇关于无法在R中安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!