简体   繁体   English

R - 安装表格包时遇到问题

[英]R - Trouble installing tabular package

I'm trying to install the tabular package in order to pull tables from a pdf document.我正在尝试安装表格包,以便从 pdf 文档中提取表格。 I tried the solution outlined here: Recognize PDF table using R , but I can't actually get all the precursor packages installed.我尝试了此处概述的解决方案: 使用 R 识别 PDF 表,但我实际上无法安装所有前体包。 I got rJava installed fine, but when I ran "library(rJava)" I got the following message:我的 rJava 安装得很好,但是当我运行“library(rJava)”时,我收到以下消息:

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.错误:.onLoad 在 loadNamespace() for 'rJava' 中失败,详细信息:调用:inDL(x, as.logical(local), as.logical(now), ...) 错误:无法加载共享对象 'C: /Documents/R/3.3.1/library/rJava/libs/x64/rJava.dll':LoadLibrary 失败:%1 不是有效的 Win32 应用程序。

In addition: Warning message: package 'rJava' was built under R version 3.3.3 Error: package or namespace load failed for 'rJava'另外:警告消息:包“rJava”是在 R 版本 3.3.3 下构建的错误:“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:我也能够安装 devtools,但是当我运行“devtools::install_github("ropensci/tabulizer", args="--no-multiarch")”时,我收到以下错误消息:

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从 URL https://api.github.com/repos/ropensci/tabulizer/zipball/master下载 GitHub repo rodensci/tabulizer@master 安装 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 表中的说明起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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