tabulapdf
tabulapdf copied to clipboard
Installation problem for "tabulizer" on 64 bits machine despite trying all solutions.
My issue issue is installing tabulizer package in R. I have tried all the solutions suggested on Github and Stackoverflow, however, somehow I am not able to install the package.
- I can install and successfully load rJava
- There is no trace back available after the function traceback()`
- Output of
sessionInfo()
is stated below.
Code is stated hereunder:
## rJava loads successfully
# install.packages("rJava")
library("rJava")
## load package
library("tabulizer")
## code goes here
## session info for your system
sessionInfo()
sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] testthat_2.0.0 yaml_2.1.18 stringr_1.3.1 markdown_0.8 evaluate_0.10.1 sourcetools_0.1.7 htmltools_0.3.6 digest_0.6.15 httpuv_1.4.3
[10] stringi_1.1.7 remotes_1.1.1 rJava_0.9-9
loaded via a namespace (and not attached):
[1] Rcpp_0.12.16 later_0.7.2 R6_2.2.2 magrittr_1.5 rlang_0.2.0 promises_1.0.1 tools_3.4.3 compiler_3.4.3
Following is the error message.
on 64-bit Windows > remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch") Downloading GitHub repo ropensci/tabulizerjars@master Installing package into ‘C:/Users/Ahsan Iftikhar/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) * installing source package 'tabulizerjars' ... ** R ** inst ** preparing package for lazy loading ** help *** installing help indices converting help for package 'tabulizerjars' finding HTML links ... done tabulizerjars-package html ** building package indices ** testing if installed package can be loaded ARGUMENT 'Iftikhar\AppData\Local\Temp\Rtmp4kGKJn\Rin38141e783c4d' ignored Error: unexpected input in "C:" Execution halted ERROR: loading failed * removing 'C:/Users/Ahsan Iftikhar/Documents/R/win-library/3.4/tabulizerjars' In R CMD INSTALL Downloading GitHub repo ropensci/tabulizer@master Downloading GitHub repo ropensci/tabulizerjars@master Installing package into ‘C:/Users/Ahsan Iftikhar/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) * installing source package 'tabulizerjars' ... ** R ** inst ** preparing package for lazy loading ** help *** installing help indices converting help for package 'tabulizerjars' finding HTML links ... done tabulizerjars-package html ** building package indices ** testing if installed package can be loaded *** arch - i386 ARGUMENT 'Iftikhar\AppData\Local\Temp\Rtmp2l0IPY\Rin9b05d6f3f8a' ignored Error: unexpected input in "C:" Execution halted *** arch - x64 ARGUMENT 'Iftikhar\AppData\Local\Temp\Rtmp2l0IPY\Rin9b0dee1675' ignored Error: unexpected input in "C:" Execution halted ERROR: loading failed for 'i386', 'x64' * removing 'C:/Users/Ahsan Iftikhar/Documents/R/win-library/3.4/tabulizerjars' In R CMD INSTALL Skipping 1 packages not available: tabulizerjars Installing package into ‘C:/Users/Ahsan Iftikhar/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) ERROR: dependency 'tabulizerjars' is not available for package 'tabulizer' * removing 'C:/Users/Ahsan Iftikhar/Documents/R/win-library/3.4/tabulizer' In R CMD INSTALL Warning messages: 1: running command '"C:/PROGRA~1/R/R-3.4.3/bin/x64/R" CMD INSTALL --no-multiarch -l "C:\Users\Ahsan Iftikhar\Documents\R\win-library\3.4" "C:/Users/Ahsan Iftikhar/AppData/Local/Temp/RtmpAjWdJa/remotesfe0652472d1/ropensci-tabulizerjars-dba1263"' had status 1 2: In i.p(...) : installation of package ‘C:/Users/Ahsan Iftikhar/AppData/Local/Temp/RtmpAjWdJa/remotesfe0652472d1/ropensci-tabulizerjars-dba1263’ had non-zero exit status 3: running command '"C:/PROGRA~1/R/R-3.4.3/bin/x64/R" CMD INSTALL -l "C:\Users\Ahsan Iftikhar\Documents\R\win-library\3.4" "C:/Users/Ahsan Iftikhar/AppData/Local/Temp/RtmpAjWdJa/remotesfe0718a702c/ropensci-tabulizerjars-dba1263"' had status 1 4: In i.p(...) : installation of package ‘C:/Users/Ahsan Iftikhar/AppData/Local/Temp/RtmpAjWdJa/remotesfe0718a702c/ropensci-tabulizerjars-dba1263’ had non-zero exit status 5: running command '"C:/PROGRA~1/R/R-3.4.3/bin/x64/R" CMD INSTALL --no-multiarch -l "C:\Users\Ahsan Iftikhar\Documents\R\win-library\3.4" "C:/Users/Ahsan Iftikhar/AppData/Local/Temp/RtmpAjWdJa/remotesfe075ca1a3f/ropensci-tabulizer-2839fc5"' had status 1 6: In i.p(...) : installation of package ‘C:/Users/Ahsan Iftikhar/AppData/Local/Temp/RtmpAjWdJa/remotesfe075ca1a3f/ropensci-tabulizer-2839fc5’ had non-zero exit status
| >
What is the Java version you're using? The current version of Tabula requires Java no lower than 7.
I am using Java Version 8
tabulizerjars
is now available on CRAN. Could you try installing this package separately first with the usual install.packages("tabulizerjars")
and check whether there are problems with this part?
I have the same issue, probably due to 64bit system.
> install.packages("tabulizerjars")
installing the source package ‘tabulizerjars’
trying URL 'https://cran.rstudio.com/src/contrib/tabulizerjars_1.0.1.tar.gz'
Content type 'application/x-gzip' length 10902674 bytes (10.4 MB)
downloaded 10.4 MB
* installing *source* package 'tabulizerjars' ...
** package 'tabulizerjars' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error : .onLoad failed in loadNamespace() for 'tabulizerjars', details:
call: NULL
error: .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Program Files/R/R-3.3.x/library/rJava/libs/i386/rJava.dll':
LoadLibrary failure: %1 nie jest prawidlowa aplikacja systemu Win32.
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Program Files/R/R-3.3.x/library/tabulizerjars'
* restoring previous 'C:/Program Files/R/R-3.3.x/library/tabulizerjars'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.X/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.x\library" C:\Users\cp\AppData\Local\Temp\Rtmpsn7yej/downloaded_packages/tabulizerjars_1.0.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘tabulizerjars’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\cp\AppData\Local\Temp\Rtmpsn7yej\downloaded_packages’
Hi, did you ever figure this out? I am having issues installing/loading the tabulizer and tabulizerjar packages as well.
I am also having the exact same problem . Are any fixes?
https://stackoverflow.com/questions/44346656/error-in-installing-tabulizer
I am having the same problem with install.packages("tabulizerjars")
, install.packages("tabulizer")
, and install.packages("rJava")
(from the link above by @vgopinath ). I've tried all the answers in the link above, including devtools::install_github("ropensci/tabulizer", args="--no-multiarch")
R version 4.1.0 (2021-05-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)