GithubHelp home page GithubHelp logo

Comments (20)

maelle avatar maelle commented on June 6, 2024 2

@tpaskhalis Thanks for your answer! As it's not something I would personally be able to help with, I've added the "help wanted" label (we're working on making such issues more easily discoverable cc @steffilazerte), and have posted in rOpenSci slack package-maintenance channel.

from tabulizer.

pat-s avatar pat-s commented on June 6, 2024 2

@DavidPerea You can install it from GitHub, which should work: remotes::install_github("ropensci/tabulizer").

from tabulizer.

maelle avatar maelle commented on June 6, 2024 2

#148 😸

from tabulizer.

tpaskhalis avatar tpaskhalis commented on June 6, 2024 1

@DavidPerea make sure that you can install and load rJava before installing tabulizerjars.

from tabulizer.

maelle avatar maelle commented on June 6, 2024

👋 @tpaskhalis, do you need any help?

from tabulizer.

tpaskhalis avatar tpaskhalis commented on June 6, 2024

The release of Java 17 caused some issues in the way R interacts with it through rJava. More specifically from Brian Ripley's email:

On the most common form of failure (all but jsr223, also seen in rJava),
Simon Urbanek writes

"There was a major change in JDK-17 that now disallows reflection to use
non-public access.  In short rJava can no longer pretend it is part of a
class when accessing methods/fields which allowed us to call methods
without explicitly subclassing a class.  This may have serious
repercussions, because code that could be before written in R now has to
be written in Java, compiled and then called from R."

It's not the best of timing for me, as it all occurred at the beginning of a new teaching semester. And also my Java is not that strong, so it will take me some time to figure this issue. But it's definitely fixable. If anybody wants to take a shot at pull request, I'd be more than happy.

@maelle, thanks, yes, I'd be happy with any help on this issue. But it's certainly on my to-do list, if nobody else attends to it. Seems like it still works with GH installation for some people.

from tabulizer.

DavidPerea avatar DavidPerea commented on June 6, 2024

So right now there is no way to use it, right?

As I am a novice user, I don't know a lot about programming to help, but a lot of encouragement!

from tabulizer.

DavidPerea avatar DavidPerea commented on June 6, 2024

@DavidPerea You can install it from GitHub, which should work: remotes::install_github("ropensci/tabulizer").

Before installing "tabulizer", I see that I must first have 'tabulizerjars' installed. But I get the following error when using this command: remotes :: install_github ("ropensci / tabulizerjars")

Downloading GitHub repo ropensci/tabulizerjars@HEAD
Running `R CMD build`...
* checking for file 'C:\Users\david\AppData\Local\Temp\Rtmp8ee6dr\remotesf0472d62281\ropensci-tabulizerjars-d1924e0/DESCRIPTION' ... OK
* preparing 'tabulizerjars':
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'tabulizerjars_1.0.1.tar.gz'
* installing *source* package 'tabulizerjars' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'tabulizerjars'
    finding HTML links ... done
    tabulizerjars                           html  
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
Error: package or namespace load failed for 'tabulizerjars':
 .onLoad failed in loadNamespace() for 'tabulizerjars', details:
  call: NULL
  error: .onLoad failed in loadNamespace() for 'rJava', details:
  call: fun(libname, pkgname)
  error: JAVA_HOME cannot be determined from the Registry
Error: loading failed
Ejecución interrumpida
ERROR: loading failed for 'x64'
* removing 'C:/Users/david/OneDrive/Documentos/R/win-library/R-4.1.2/library/tabulizerjars'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/david/AppData/Local/Temp/Rtmp8ee6dr/filef042d3e148b/tabulizerjars_1.0.1.tar.gz’ had non-zero exit status

How is it solved?

from tabulizer.

DavidPerea avatar DavidPerea commented on June 6, 2024

@DavidPerea make sure that you can install and load rJava before installing tabulizerjars.

Solved, thank you very much!

from tabulizer.

budall avatar budall commented on June 6, 2024

Hi, I'm in same boat. Would like to use this package, but the remotes :: install_github ("ropensci / tabulizerjars") fails like this:

remotes::install_github("ropensci/tabulizer")
Downloading GitHub repo ropensci/tabulizer@HEAD
Skipping 1 packages not available: tabulizerjars
✓ checking for file ‘/private/var/folders/55/2g40bwx56rvg3bnchwhvqkdr0000gn/T/Rtmp3jLMsJ/remotes6afbece498f/ropensci-tabulizer-9f45f91/DESCRIPTION’ ...
─ preparing ‘tabulizer’:
✓ checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Removed empty directory ‘tabulizer/docs’
─ building ‘tabulizer_0.2.2.tar.gz’

ERROR: dependency ‘tabulizerjars’ is not available for package ‘tabulizer’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/tabulizer’
    Warning message:
    In i.p(...) :
    installation of package ‘/var/folders/55/2g40bwx56rvg3bnchwhvqkdr0000gn/T//Rtmp3jLMsJ/file6afb93f52e1/tabulizer_0.2.2.tar.gz’ had non-zero exit status

rJava is installed and loaded - and I don't get any obvious errors from it.

This is a Mac. Happy to move to a PC/Ubuntu if that is an easier path.

Any clues? Really, really could use this package right now!

thanks,

from tabulizer.

budall avatar budall commented on June 6, 2024

I got this working. It was simple.

You need this:

remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer")

from tabulizer.

ddkapan avatar ddkapan commented on June 6, 2024

For macOS >= to Catalina, it won’t work b/c the relevant legacy Java runtime (SE 6) is not compatible, downgrade OS, switch OS systems or find an alternative application.

from tabulizer.

araceliramirezg avatar araceliramirezg commented on June 6, 2024

Hi!

@DavidPerea You can install it from GitHub, which should work: remotes::install_github("ropensci/tabulizer").

I tried this but I had this error

Downloading GitHub repo ropensci/tabulizer@HEAD Error: Failed to install 'tabulizer' from GitHub: invalid octal digit

Help, please! i need tu use this package

from tabulizer.

pat-s avatar pat-s commented on June 6, 2024

@araceliramirezg This seems to be a separate issue of your local R installation. I suggest to open a new issue and provide more information on your local R installation. You might use the reprex package to provide this information.

from tabulizer.

araceliramirezg avatar araceliramirezg commented on June 6, 2024

@araceliramirezg This seems to be a separate issue of your local R installation. I suggest to open a new issue and provide more information on your local R installation. You might use the reprex package to provide this information.

@pat-s I tried it again and i have this message:

`remotes::install_github("ropensci/tabulizer")
Downloading GitHub repo ropensci/tabulizer@HEAD
Downloading GitHub repo ropensci/tabulizerjars@HEAD
WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools 4.0 from https://cran.r-project.org/bin/windows/Rtools/.
√ checking for file 'C:\Users\pc\AppData\Local\Temp\RtmpY7EkSu\remotes9e414fe2c0a\ropensci-tabulizerjars-d1924e0/DESCRIPTION' (773ms)

  • preparing 'tabulizerjars':
    √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building 'tabulizerjars_1.0.1.tar.gz'

Installing package into ‘C:/Users/pc/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

  • installing source package 'tabulizerjars' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'tabulizerjars'
    finding HTML links ... done
    tabulizerjars html
    ** building package indices
    ** testing if installed package can be loaded from temporary location
    *** arch - i386
    *** arch - x64
    Error: package or namespace load failed for 'tabulizerjars':
    .onLoad failed in loadNamespace() for 'tabulizerjars', details:
    call: NULL
    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: loading failed
    Ejecución interrumpida
    ERROR: loading failed for 'x64'
  • removing 'C:/Users/pc/Documents/R/win-library/4.0/tabulizerjars'
    Downloading GitHub repo ropensci/tabulizerjars@HEAD
    Skipping tabulizerjars, it is already being installed
    WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools 4.0 from https://cran.r-project.org/bin/windows/Rtools/.
√ checking for file 'C:\Users\pc\AppData\Local\Temp\RtmpY7EkSu\remotes9e46a0f279d\ropensci-tabulizer-3049a79/DESCRIPTION' (822ms)

  • preparing 'tabulizer': (391ms)
    √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
    Removed empty directory 'tabulizer/docs'
  • building 'tabulizer_0.2.2.tar.gz'

Installing package into ‘C:/Users/pc/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
ERROR: dependency 'tabulizerjars' is not available for package 'tabulizer'

  • removing 'C:/Users/pc/Documents/R/win-library/4.0/tabulizer'
    Warning messages:
    1: In i.p(...) :
    installation of package ‘C:/Users/pc/AppData/Local/Temp/RtmpY7EkSu/file9e42a277c7b/tabulizerjars_1.0.1.tar.gz’ had non-zero exit status
    2: In i.p(...) :
    installation of package ‘C:/Users/pc/AppData/Local/Temp/RtmpY7EkSu/file9e4616d358b/tabulizer_0.2.2.tar.gz’ had non-zero exit status`

Help:(

from tabulizer.

AQLT avatar AQLT commented on June 6, 2024

The problem with Java 17 seems to come from the use of the $ operator that uses reflection. It seems that the issue can be solved with some minor changes in the code (PR #146).

from tabulizer.

jbryer avatar jbryer commented on June 6, 2024

Any update on accepting @AQLT pull request?

from tabulizer.

maelle avatar maelle commented on June 6, 2024

👋 @tpaskhalis, is any help needed? I also emailed you but imagine you're busy!

from tabulizer.

pat-s avatar pat-s commented on June 6, 2024

Maybe @leeper has time to help here and eventually merge #146?

Otherwise summoning the swiss-knife @jeroen as he did the last commit in the history.

from tabulizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.