无法在 R 中安装软件包
Unable to install a package package in R
我正在使用 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 个错误之一
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'
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
有人可以帮我解决这个错误吗?我不是技术人员,但解决此问题的任何帮助都将非常有用
所以问题原来是"error converted to warning"场景,as described here
在安装命令之前设置 Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
解决了问题。
我正在使用 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 个错误之一
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'
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
有人可以帮我解决这个错误吗?我不是技术人员,但解决此问题的任何帮助都将非常有用
所以问题原来是"error converted to warning"场景,as described here
在安装命令之前设置 Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
解决了问题。