Trouble installing tabulizer package

人走茶凉 提交于 2019-11-30 19:56:31
Bomeru

So, I found an answer on 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

The below code worked for me. Now, I have the following versions installed -

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"))

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 i.e. rJava, httpuv, sourcetools, png

Adam

install.packages("remotes") # get Package if you don’t have it

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

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. If none of the packs gives an error (therefore the Press [enter] to continue), you can install tabulizer with

remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!