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

problem with ncdf4 #621

Open
dankelley opened this issue Jun 15, 2024 · 1 comment
Open

problem with ncdf4 #621

dankelley opened this issue Jun 15, 2024 · 1 comment

Comments

@dankelley
Copy link

I have a package (github.com/dankelley/oce) that passes rhub tests on linux (R-devel) but fails on both windows and macos (R-devel).

The reported problem is as below. This has been the case for quite a while. I wonder if there is a way I can get around this, perhaps by telling it to use the CRAN version of ncdf4 (to circumvent compilation of an already trustworthy CRAN build).

Things are fine with the other test actions for the package. But I do like to include r-hub in my testing, because I reason that the more tests, the better.

I'm using the action code as downloaded a few months ago.

  ℹ Building ncdf4 1.22
  ✖ Failed to build ncdf4 1.22 (1m 18.3s)
  Error: 
  ! error in pak subprocess
  Caused by error in `stop_task_build(state, worker)`:
  ! Failed to build source package ncdf4.
@gaborcsardi
Copy link
Collaborator

I wonder if there is a way I can get around this, perhaps by telling it to use the CRAN version of ncdf4 (to circumvent compilation of an already trustworthy CRAN build).

CRAN does not have macOS package builds for R-devel. They also don't have one for ncdf4 on Windows R-devel, because it fails to build for them as well, see the CRAN check pages of the package.

I'm using the action code as downloaded a few months ago.

You are using an old version of the workflow, install/update the rhub package and run rhub::rhub_setup(overwrite = TRUE). That should solve the macos build issue.

The Windows issue is either with the ncdf4 package itself or Rtools, so that needs to be solved elsewhere.

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