[英]Trouble installing tabulizer package
I used the following code to install the tabulizer
package:我使用以下代码安装
tabulizer
包:
ghit::install_github(c("ropenscilabs/tabulizerjars", "ropenscilabs/tabulizer"), INSTALL_opts = "--no-multiarch")
I get the following error when I run it:运行时出现以下错误:
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
What has gone wrong here?这里出了什么问题? What do the 'Warning messages' mean?
“警告信息”是什么意思?
I am using 64-bit R 3.2.3 version and jdk1.7.0_79.我使用的是 64 位 R 3.2.3 版本和 jdk1.7.0_79。 My JAVA_HOME is set correctly to "C:\\Program Files\\Java\\jdk1.7.0_79\\jre".
我的 JAVA_HOME 正确设置为“C:\\Program Files\\Java\\jdk1.7.0_79\\jre”。
I had tabulizer
installed previously and my code ran fine.我之前安装了
tabulizer
,我的代码运行良好。 Got an output too converting from PDF.也有从 PDF 转换的输出。 But then I ran into jvm.dll file missing issue, so I uninstalled then reinstalled all packages (
rJava
, miniUI
, shiny
and tabulizer
) as well as the jdk.但后来我遇到的jvm.dll文件丢失的问题,所以我卸载然后重新安装所有程序包(
rJava
, miniUI
, shiny
和tabulizer
)以及JDK中。
Can someone please help me understand how do I troubleshoot this and successfully install the tabulizer
package in R?有人可以帮助我了解如何解决此问题并在 R 中成功安装
tabulizer
程序包吗?
So, I found an answer on github.所以,我在github上找到了答案。 Didn't come up in my google search earlier.
之前没有出现在我的谷歌搜索中。 Original installation code which didn't work -
原始安装代码不起作用 -
remotes::install_github(c("ropenscilabs/tabulizerjars", "ropenscilabs/tabulizer"), INSTALL_opts = "--no-multiarch")
Link to the issue and answers is here https://github.com/ropenscilabs/tabulizer/issues/14问题和答案的链接在这里https://github.com/ropenscilabs/tabulizer/issues/14
The below code worked for me.下面的代码对我有用。 Now, I have the following versions installed -
现在,我安装了以下版本 -
leeper/tabulizerjars: "0.1.2" leeper/tabulizerjars:“0.1.2”
leeper/tabulizer: "0.1.22" leeper/制表机:“0.1.22”
remotes::install_github(c("remotes/tabulizerjars", "remotes/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))
Try this...试试这个...
library(devtools)
install_github("ropensci/tabulizer", dependencies = "FALSE")
you want to install the other packages that tabulizer uses one by one as well ie rJava, httpuv, sourcetools, png你想一一安装tabulizer使用的其他包,即rJava、httpuv、sourcetools、png
install.packages("remotes")
# get Package if you don't have it install.packages("remotes")
# 如果没有包,请获取
library(remotes)
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))
If this results in errors install the packages one bay one如果这导致错误,请安装一托架一的软件包
install.packages("dplyr")
# get Package if you don't have it 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")
}
)
If there are errors post them on Stack.如果有错误,请在 Stack 上发布。 If none of the packs gives an error (therefore the Press [enter] to continue), you can install tabulizer with
如果没有任何包出错(因此按 [enter] 继续),您可以安装 tabulizer
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.