我想对R使用RSelenium,但它已从CRAN中删除。我决定按照指南使用从GitHub下载/安装,但我得到一个错误消息,我无法解释。
devtools::install_github("ropensci/RSelenium")R开始下载
Downloading GitHub repo ropensci/RSelenium@master
These packages have more recent versions available.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: XML (3.98-1.20 -> 3.99-0) [CRAN]
Enter one or more numbers, or an empty line to skip updates:我正在输入1,因为我想要更新所有内容。
XML (3.98-1.20 -> 3.99-0) [CRAN]
wdman (NA -> 0.2.4 ) [CRAN]
binman (NA -> 0.1.1 ) [CRAN]
subprocess (NA -> 0.8.3 ) [CRAN]
semver (NA -> 0.2.0 ) [CRAN]
Installing 5 packages: XML, wdman, binman, subprocess, semver
Error: Failed to install 'RSelenium' from GitHub:
(converted from warning) unable to access index for repository http://www.omegahat.net/R/bin/macosx/el-capitan/contrib/3.6:
cannot open URL 'http://www.omegahat.net/R/bin/macosx/el-capitan/contrib/3.6/PACKAGES'我该如何解决这个问题呢?(我的R和RStudio版本更新了,这通常会使包在我身上不起作用。问题修复程序no1“重新启动R工作室”也没有帮助;) )。
发布于 2019-11-15 23:37:01
您的问题是某些依赖项在您的默认repo上不可用。具体地说,这不起作用:
install.packages("binman", repos = "http://www.omegahat.net/R")目前在CRAN上也可以使用RSelenium。所以你需要做的就是选择一个包含这些包的CRAN镜像。例如:
install.packages(c("XML", "wdman", "binman", "subprocess", "semver", "RSelenium"),
repos = "https://cloud.r-project.org")https://stackoverflow.com/questions/58879864
复制相似问题