tabulapdf
tabulapdf copied to clipboard
Cannot open connection
Hi, I have tried to install tabulizer using your installation instructions with Administrator rights on R console for Windows, but terribly got these issues:
> ghit::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch", verbose = TRUE)
Parsing reponame for 'ropensci/tabulizerjars'...
Creating local git repository for tabulizerjars in C:\Users\OSAIRI~1\AppData\Local\Temp\Rtmp0Wm6U8\tabulizerjars259455b14e31...
Checking out package tabulizerjars to local git repository...
[new] c6cc40e055d3f92c4e96 refs/remotes/github/master
[new] 8e97b66b202b72e2d3b8 refs/remotes/github/tabula1.0.0
[new] 49e8e460fd627b6b05db refs/tags/v0.8.0
[new] 9d4ad56ff7efa2f15560 refs/tags/v0.9.0
[new] 063903e22684b86ad1e5 refs/tags/v0.9.1
[new] e472789f3d7f3e3e7a6b refs/tags/v0.9.2
[new] 8cd728692a47868b4fff refs/tags/v1.0.1
Adding metadata to DESCRIPTION for package tabulizerjars...
Reading package metadata for 'ropensci/tabulizerjars'...
Building package tabulizerjars (0.9.2)...
Creating internal package repository in C:\Users\OSAIRI~1\AppData\Local\Temp\Rtmp0Wm6U8/ghitdrat/src...
Writing PACKAGES file for internal repository...
Creating Windows binary folder in internal repository...
Writing PACKAGES file for Windows binaries in internal repository...
Writing package tabulizerjars to internal repository...
C:\PROGRA~2\Gow\bin\tar.exe: Cannot fork: Function not implemented
C:\PROGRA~2\Gow\bin\tar.exe: Error is not recoverable: exiting now
reading DESCRIPTION for package ‘tabulizerjars’ failed with message:
cannot open the connection
Parsing reponame for 'ropensci/tabulizer'...
Creating local git repository for tabulizer in C:\Users\OSAIRI~1\AppData\Local\Temp\Rtmp0Wm6U8\tabulizer25943e4528bb...
Checking out package tabulizer to local git repository...
[new] 2fedf7ad935235bc211f refs/remotes/github/badge-add
[new] 89fdfba9082e4ec9d4df refs/remotes/github/master
Adding metadata to DESCRIPTION for package tabulizer...
Reading package metadata for 'ropensci/tabulizer'...
Installing 'Suggests' packages for 'tabulizer': graphics, grDevices, shiny, miniUI, testthat, knitr
Installing package into ‘D:/Dropbox/R/win-library/3.4’
(as ‘lib’ is unspecified)
system (cmd0): C:/PROGRA~1/R/R-34~1.0/bin/x64/R CMD INSTALL --no-multiarch
Error in read.dcf(file = tmpf) : cannot open the connection
In addition: Warning message:
In read.dcf(file = tmpf) :
cannot open compressed file 'C:\Users\OSAIRI~1\AppData\Local\Temp\Rtmp0Wm6U8/ghitdrat/src/contrib/PACKAGES', probable reason 'No such file or directory'
>
What's probably wrong with this?
Try with devtools::install_github("ropensci/tabulizerjars") and then devtools::install_github("ropensci/tabulizer")
I'm having a similar problem on windows. The closest I've gotten is using devtools, but I get the error: "JAVA_HOME cannot be determined from the Registry" (among others) when installing tabulizerajars. I'm on a PC and I've installed java. All the other packages load separately. Here is my script:
install.packages("stringi")
install.packages("httpuv")
install.packages("htmltools")
install.packages("sourcetools")
install.packages("evaluate")
install.packages("markdown")
install.packages("stringr")
install.packages("yaml")
install.packages("testthat")
library("stringi")
library("httpuv")
library("htmltools")
library("sourcetools")
library("evaluate")
library("markdown")
library("stringr")
library("yaml")
library("testthat")
library(devtools)
Sys.setenv(JAVA_HOME = "C:/Program Files/Java/jdk1.8.0_92")
Sys.setenv(JAVA_HOME = "")
devtools::install_github("ropensci/tabulizerjars")
Full output:
Downloading GitHub repo ropensci/tabulizerjars@master
from URL https://api.github.com/repos/ropensci/tabulizerjars/zipball/master
Installing tabulizerjars
"C:/PROGRA~1/R/R-34~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:/Users/jbarash/AppData/Local/Temp/Rtmpqk2uWh/devtools159499f54b3/ropensci-tabulizerjars-60b7cec" \
--library="C:/Users/jbarash/Documents/R/win-library/3.4" --install-tests
* installing *source* package 'tabulizerjars' ...
** R
** inst
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
ERROR: lazy loading failed for package 'tabulizerjars'
* removing 'C:/Users/jbarash/Documents/R/win-library/3.4/tabulizerjars'
Installation failed: Command failed (1)
I've successfully installed it by using the similar code as mentioned by @leeper at https://github.com/ropensci/tabulizer/issues/14#issuecomment-243227379 with args argument:
library(devtools) install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), args = "--no-multiarch")
Run the code on R Console (not RStudio) with Administrator permission (Run as administrator). But, first of all try to make sure that all dependencies like rJava, etc are properly installed.