如何在raspberry pi 3(raspbian)上安装RSelenium?

时间:2017-10-24 16:47:41

标签: raspbian raspberry-pi3 rselenium

我试图在我的Raspberry Ri Rstudio服务器上安装RSelenium软件包,但是当我尝试安装软件包时,我收到了很多错误消息,其中一些发布在下面。我该如何解决这个问题?

/usr/lib/R/etc/Makeconf:141: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 1

ERROR: compilation failed for package 'semver'
* removing '/usr/local/lib/R/site-library/semver'
Warning in install.packages :
  installation of package 'semver' had non-zero exit status

ERROR: dependency 'semver' is not available for package 'binman'
* removing '/usr/local/lib/R/site-library/binman'
Warning in install.packages :
  installation of package 'binman' had non-zero exit status

ERROR: dependencies 'binman', 'subprocess', 'semver' are not available for package 'wdman'
* removing '/usr/local/lib/R/site-library/wdman'
Warning in install.packages :
  installation of package 'wdman' had non-zero exit status

ERROR: dependencies 'wdman', 'binman' are not available for package 'RSelenium'
* removing '/usr/local/lib/R/site-library/RSelenium'
Warning in install.packages :
  installation of package 'RSelenium' had non-zero exit status

1 个答案:

答案 0 :(得分:-1)

所以......我今天得到同样的错误。我已经格式化了我的电脑,现在我再也无法安装RSelenium了。 我正在运行R版本3.4.2(2017-09-28) - “短暂的夏天” 我已经安装了r-base和r-base-dev

尝试在终端中运行以下命令:

sudo apt-get install libxml2-dev

然后在R:

中安装“binman”软件​​包

install.packages( “binman”)

然后从github安装Rselenium的开发版本。 为此,你应该在你的R中安装devtools包。

安装devtools后运行: devtools :: install_github( “ropensci / RSelenium”)

这对我有用。