Skip to content

Rhub drat - #5

Merged
bmaitner merged 3 commits into
masterfrom
rhub-drat
Oct 19, 2026
Merged

bmaitner merged 3 commits into
masterfrom
rhub-drat

Conversation

@bmaitner

Copy link
Copy Markdown
Contributor

No description provided.

bmaitner and others added 3 commits October 19, 2026 13:56
Every R-hub platform failed while installing dependencies: "Can't find
package called rWCVPdata". R-hub installs with pak, which doesn't read
DESCRIPTION's Additional_repositories. A step before setup-deps in both
jobs now adds the drat repository to the R user profile, loading utils
first so the platform's own repositories are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BIEN was suggested only for the \dontrun example of the deprecated,
unexported NSR_from_coordinates(). It imports RPostgreSQL, which failed
to compile on R-hub's Fedora platforms (atlas, nosuggests) for lack of
the PostgreSQL headers, stopping both before R CMD check ran. The example
now builds its input as a data frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R-hub's nosuggests platform, like CRAN's no-Suggests checks, runs with
only Depends, Imports, VignetteBuilder and testthat available, and failed
twice:

- The tests stopped in setup-nsr.R, which loaded vcr unconditionally. vcr
  is now set up only when installed, and each test replaying a recorded
  API response skips itself without it.
- The vignette couldn't be rebuilt: its knitr::rmarkdown engine needs
  rmarkdown, which was only in Suggests. rmarkdown is now also listed in
  VignetteBuilder, so it's available in these checks.

R CMD check --as-cran with _R_CHECK_DEPENDS_ONLY_=true now passes locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 19, 2026 20:32

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused dependency, test-guard, and documentation changes have no identified blocking issues.

No open issues 🎉

1 file not reviewed
  • man/NSR_from_coordinates.Rd: Generated file
What changed in this PR

Improves R-hub dependency setup and supports package checks without optional test dependencies.

Changes:

  • Adds the rWCVPdata drat repository to both R-hub jobs.
  • Makes vcr setup conditional and skips dependent tests when unavailable.
  • Replaces BIEN-based examples with inline data and updates vignette builders.
File Description
tests/​testthat/​test-NSR.R Skips without vcr.
tests/​testthat/​test-NSR_version.R Skips without vcr.
tests/​testthat/​test-NSR_sources.R Skips without vcr.
tests/​testthat/​test-NSR_simple.R Skips both examples without vcr.
tests/​testthat/​test-NSR_political_divisions.R Skips both examples without vcr.
tests/​testthat/​test-NSR_data_dictionary.R Skips both examples without vcr.
tests/​testthat/​test-NSR_citations.R Skips without vcr.
tests/​testthat/​setup-nsr.R Configures vcr only when installed.
R/​NSR_from_coordinates.R Simplifies the documented example.
man/​NSR_from_coordinates.Rd Synchronizes the help example.
DESCRIPTION Removes BIEN and adds rmarkdown as a vignette builder.
.github/​workflows/​rhub.yaml Configures drat before dependency installation.

Review effort: Balanced

@bmaitner
bmaitner merged commit 9e69bf3 into master Oct 19, 2026
9 checks passed
@bmaitner
bmaitner deleted the rhub-drat branch October 19, 2026 20:41
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

Successfully merging this pull request may close these issues.

2 participants