我使用以下代码安装了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包吗?
发布于 2016-08-26 21:35:24
所以,我在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"))发布于 2017-06-18 06:02:02
试试这个。
library(devtools)
install_github("ropensci/tabulizer", dependencies = "FALSE")您还需要逐个安装tabulizer使用的其他包,即rJava、httpuv、sourcetools、png
发布于 2017-07-27 18:22:45
install.packages("remotes") #如果您没有包,请获取包
library(remotes)
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))如果这会导致错误,请安装这些包
install.packages("dplyr") #如果您没有包,请获取包
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"))https://stackoverflow.com/questions/39132202
复制相似问题