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

R package #2

Open
cthoyt opened this issue Jan 5, 2024 · 2 comments
Open

R package #2

cthoyt opened this issue Jan 5, 2024 · 2 comments

Comments

@cthoyt
Copy link
Member

cthoyt commented Jan 5, 2024

See:

@cthoyt
Copy link
Member Author

cthoyt commented Dec 15, 2024

@vemonet looks like there's an issue with the R build right now

@vemonet
Copy link
Collaborator

vemonet commented Dec 16, 2024

Nice consistency, 3 months ago: Adding libR-sys v0.6.0 (latest: v0.7.1) no problem in the GH workflow where R was not present

And all of sudden, same version, no changes in any dependencies, it now fails because R not present on the system (according to their logs)

error: failed to run custom build command for `libR-sys v0.6.0`

Caused by:
  process didn't exit successfully: `/home/runner/work/curies.rs/curies.rs/target/debug/build/libR-sys-8058795fe5904c73/build-script-build` (exit status: 1)
  --- stdout
  Problem locating local R install: Os { code: 2, kind: NotFound, message: "No such file or directory" }

So I have added - uses: r-lib/actions/setup-r@v2, and now cargo build and clippy pass, but cargo test fails because the official action to setup R is not doing its job properly... error while loading shared libraries: libR.so: cannot open shared object file: No such file or directory (nice testament of the quality bad of R environment setup...).

Note the test pass on my machine where R is installed (I managed to installed it somehow, but it was failing to install standard R packages like testthat so I kind of left it on the side...)

Funny thing is that I don't even provide a single test for the R part, so no idea why now it tries to run it and fails

Finally, adding sudo apt-get install -y r-base r-base-dev after the setup-r fixes it...

If someone with some decent experience on how to setup and install R elegantly in a way that is reproducible (i.e. through bash commands for mac, debian and gh actions), I would love to get some guidelines

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

No branches or pull requests

2 participants