我使用以下代码安装tabulizer
包:
ghit::install_github(c("ropenscilabs/tabulizerjars", "ropenscilabs/tabulizer"), INSTALL_opts = "--no-multiarch")
运行时出现以下错误:
ropenscilabs/tabulizerjars ropenscilabs/tabulizer
NA NA
Warning messages:
1: running command '"C:/PROGRA~1/R/R-32~1.3/bin/x64/R" CMD INSTALL --no-multiarch -l "C:\Program Files\R\R-3.2.3\library" C:\Users\borle\AppData\Local\Temp\RtmpQTDkF7/ghitdrat/src/contrib/tabulizerjars_0.1.2.tar.gz' had status 1
2: In utils::install.packages(to_install, type = type, repos = repos, :
installation of package ‘tabulizerjars’ had non-zero exit status
3: running command '"C:/PROGRA~1/R/R-32~1.3/bin/x64/R" CMD INSTALL --no-multiarch -l "C:\Program Files\R\R-3.2.3\library" C:\Users\borle\AppData\Local\Temp\RtmpQTDkF7/ghitdrat/src/contrib/tabulizer_0.1.22.tar.gz' had status 1
4: In utils::install.packages(to_install, type = type, repos = repos, :
installation of package ‘tabulizer’ had non-zero exit status
这里出了什么问题? “警告信息”是什么意思?
我使用的是64位R 3.2.3版本和jdk1.7.0_79。我的JAVA_HOME设置正确为“C:\ Program Files \ Java \ jdk1.7.0_79 \ jre”。
我之前安装过tabulizer
,我的代码运行正常。从PDF转换输出也是如此。但后来我遇到了jvm.dll文件丢失的问题,所以我卸载然后重新安装了所有软件包(rJava
,miniUI
,shiny
和tabulizer
)以及jdk。
有人可以帮助我了解如何解决此问题并在R中成功安装tabulizer
包?
答案 0 :(得分:9)
所以,我在github上找到了答案。早些时候没有在我的谷歌搜索中出现。 原始安装代码无效 -
remotes::install_github(c("ropenscilabs/tabulizerjars", "ropenscilabs/tabulizer"), INSTALL_opts = "--no-multiarch")
问题和答案的链接在https://github.com/ropenscilabs/tabulizer/issues/14
以下代码对我有用。现在,我安装了以下版本 -
leeper / tabulizerjars:“0.1.2”
leeper / tabulizer:“0.1.22”
remotes::install_github(c("remotes/tabulizerjars", "remotes/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))
答案 1 :(得分:1)
试试这个......
library(devtools)
install_github("ropensci/tabulizer", dependencies = "FALSE")
你想安装tabulizer逐个使用的其他软件包,即rJava,httpuv,sourcetools,png
答案 2 :(得分:0)
install.packages("remotes")
#get package如果你没有它
library(remotes)
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))
如果这导致错误,请将软件包安装到一个托架
install.packages("dplyr")
#get package如果你没有它
library(dplyr)
packs <- c('stringi', 'httpuv', 'digest', 'htmltools', 'sourcetools', 'evaluate', 'markdown',
'stringr', 'yaml', 'rJava', 'testthat')
laply(packs, function(x){
install.packages(x)
readline(prompt="Press [enter] to continue")
}
)
如果在Stack上发布错误。如果没有任何包给出错误(因此按[enter]继续),您可以安装tabulizer
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))