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’</p>

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.

4

1 回答 1

1

我将 R 更新到最新版本,下载 64 位 Java,将新的 64 位 Java 添加到我的 PATH 中,然后使用 R 识别 PDF 表中的说明起作用。

于 2018-07-27T12:55:31.330 回答