1

I'm trying to install the tabular package in order to pull tables from a pdf document. I tried the solution outlined here: Recognize PDF table using R, but I can't actually get all the precursor packages installed. I got rJava installed fine, but when I ran "library(rJava)" I got the following message:

Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Documents/R/3.3.1/library/rJava/libs/x64/rJava.dll': LoadLibrary failure: %1 is not a valid Win32 application.

In addition: Warning message: package ‘rJava’ was built under R version 3.3.3 Error: package or namespace load failed for ‘rJava’

I was able to install devtools as well, but when I ran "devtools::install_github("ropensci/tabulizer", args="--no-multiarch")", I got the following error message:

Downloading GitHub repo ropensci/tabulizer@master from URL https://api.github.com/repos/ropensci/tabulizer/zipball/master Installing tabulizer "C:/DOCUME~1/R/R-33~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD \ INSTALL "C:/AppData/Local/Temp/RtmpsteRkU/devtools2ac44b92539b/ropensci-tabulizer-bc195cb" \ --library="C:/Documents/R/R-3.3.1/library" --install-tests --no-multiarch

Not sure what exactly is going on. Thanks in advance for any direction here.

5
  • Possible duplicate: stackoverflow.com/questions/37735108/… Commented Jul 26, 2018 at 20:05
  • 1
    Are you really running R-3.3.1? You are a few versions behind. Might want to also try upgrading to something more recent. (R-3.5.1 is the current version). Commented Jul 26, 2018 at 20:06
  • Also that "Downloading GitHub repo..." isn't an error message. Does nothing happen after that message? Or does an actual error occur later? Commented Jul 26, 2018 at 20:07
  • Sorry, I cut the quote short: ERROR: dependency 'tabulizerjars' is not available for package 'tabulizer' * removing 'C:/Documents/R/R-3.3.1/library/tabulizer' Installation failed: Command failed (1) Commented Jul 26, 2018 at 20:36
  • Got it. Thanks for pointing out the duplicate. Commented Jul 27, 2018 at 12:49

1 Answer 1

1

I updated R to the latest version, downloaded 64 bit Java, added the new 64 bit Java to my PATH, and then the instructions from Recognize PDF table using R worked.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.