简体   繁体   中英

R - Trouble installing tabular package

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM