作者:四海承风2502893247 | 来源:互联网 | 2023-10-11 19:42
我尝试从GitHub安装软件包,并且在R
中使用了以下代码:
install.packages("devtools")
library(devtools)
install_github("Displayr/flipPlots")
但是我得到了以下错误:
Error: Failed to install 'flipPlots' from GitHub:
Failed to install 'flipTransformations' from GitHub:
Failed to install 'flipFormat' from GitHub:
Failed to install 'formattable' from GitHub:
(converted from warning) cannot remove prior installation of package ‘Rcpp’
我该如何解决这个问题?
编辑。在注释中包含建议之后,我执行了以下步骤:
install.packages("Rcpp")
但是我获得了
Error: Failed to install 'flipPlots' from GitHub:
Failed to install 'flipTransformations' from GitHub:
Failed to install 'flipFormat' from GitHub:
Failed to install 'formattable' from GitHub:
(converted from warning) cannot remove prior installation of package ‘rlang’
然后:
install.packages("rlang")
和
Error: Failed to install 'unknown package' from GitHub:
Failed to install 'unknown package' from GitHub:
Failed to install 'unknown package' from GitHub:
(converted from warning) cannot remove prior installation of package ‘backports’
最后我安装了backports
软件包,但获得了以下新错误:
Error: Failed to install 'unknown package' from GitHub:
cannot open URL
'https://api.github.com/repos/Displayr/flipPlots/contents/DESCRIPTION?ref=master'