Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not loading in R #45

Open
leopoldinho opened this issue Apr 5, 2017 · 7 comments
Open

Not loading in R #45

leopoldinho opened this issue Apr 5, 2017 · 7 comments

Comments

@leopoldinho
Copy link

Hi, I confess I'm not an expert R user but I seem to have some problems in installing Tabulizer in R.

I'm using R Studio and working in a 64bit Windows environment.

I tried loading the package using this line (as I had seen in another thread):

ghit::install_github(c("leeper/tabulizerjars", "leeper/tabulizer"), INSTALL_opts = "--no-multiarch", dependencies = c("Depends", "Imports"))

And that is what I got as an answer:

leeper/tabulizerjars leeper/tabulizer
NA NA
Warning messages:
1: running command '"C:/PROGRA1/R/R-331.0/bin/x64/R" CMD INSTALL --no-multiarch -l "C:\Users...\Documents\R\win-library\3.3" C:\Users...\AppData\Local\Temp\RtmpeML0Qt/ghitdrat/src/contrib/tabulizerjars_0.9.2.tar.gz' had status 1
2: In utils::install.packages(to_install, type = type, repos = repos, :
installation of package ‘tabulizerjars’ had non-zero exit status
3: running command '"C:/PROGRA1/R/R-331.0/bin/x64/R" CMD INSTALL --no-multiarch -l "C:\Users...\Documents\R\win-library\3.3" C:\Users...\AppData\Local\Temp\RtmpeML0Qt/ghitdrat/src/contrib/tabulizer_0.1.24.tar.gz' had status 1
4: In utils::install.packages(to_install, type = type, repos = repos, :
installation of package ‘tabulizer’ had non-zero exit status

Could you help me with that?

Thanks in advance.

@leeper
Copy link
Member

leeper commented Apr 5, 2017

@leopoldinho A couple of general suggestions:

  • ghit::install_github(c("leeper/tabulizerjars", "leeper/tabulizer"), INSTALL_opts = "--no-multiarch", verbose = TRUE) will give you some more details on what is failing.
  • Make sure rJava is installed first, that seems to be causing problems for some people.
  • The png package also seems to cause problems on some platforms, so I would recommend trying to install that first, too.

@leeper leeper added the question label Apr 5, 2017
@leopoldinho
Copy link
Author

Thanks for your answer. I think the problem is indeed with rJava which seems not to work even if I install it first.

That's what the error message I get (part of it).

  • installing source package 'tabulizerjars' ...
    ** R
    ** inst
    ** preparing package for lazy loading
    Error : .onLoad failed in loadNamespace() for 'rJava', details:
    call: fun(libname, pkgname)
    error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
    ERROR: lazy loading failed for package 'tabulizerjars'
  • removing 'C:/Users/Raffo/Documents/R/win-library/3.3/tabulizerjars'
    ERROR: dependency 'tabulizerjars' is not available for package 'tabulizer'
  • removing 'C:/Users/Raffo/Documents/R/win-library/3.3/tabulizer'

I've seen elsewhere on the web that this seems to be a pretty common problem with that package. Any suggestion on how to fix it?

Thanks a lot for any help.

@leeper
Copy link
Member

leeper commented Apr 5, 2017

It might be your JAVA_HOME environment variable. Try something like Sys.setenv(JAVA_HOME = "C:/Program Files/Java/jdk1.8.0_92") maybe?

@leopoldinho
Copy link
Author

Thanks for the suggestion but even that doesn't seem to work for me, unfortunately

@aayush-nangru
Copy link

@leopoldinho - Were you able to get around the issue? I get the same error while trying to install tabulizer. I am able to install rJava though.

Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
ERROR: lazy loading failed for package 'tabulizerjars'

@leopoldinho
Copy link
Author

No, unfirtunately I could not solve the problem and had to give up Tabulizer

@aayush-nangru
Copy link

Ah okay. Thanks for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants