Reputation: 21
I'm trying to scrape table data from pdfs in R and so I've installed and loaded tabulapdf and rJava packages. The packages themselves appear to be loaded fully (initially had problems with Java but resolved them), however every time I run some example code, I get the 'fatal error / R Session aborted' message. Does anyone have advice on how to troubleshoot? My example code was
f <- system.file("examples", "mtcars.pdf", package = "tabulapdf")
extract_tables(f, pages = 2)
Java version says "1.8.0_431"
Upvotes: 1
Views: 59
Reputation: 23
I had this exact same issue, and it was because the bit size of R didn't match the bit size of Java (i.e. 32-bit R with 64-bit Java or vice-versa). I resolved this by re-installing Java and re-initializing R to confirm they were both 64 bit.
Upvotes: 0