Skip to content

Import %||% from rlang - #2

Merged
r-heller merged 1 commit into
mainfrom
fix/importfrom-null-default
Aug 21, 2026
Merged

r-heller merged 1 commit into
mainfrom
fix/importfrom-null-default

Conversation

@r-heller

Copy link
Copy Markdown
Collaborator

%||% is used 8 times in R/parsers.R, neither defined locally nor imported, while DESCRIPTION declares R (>= 4.1.0).

%||% entered base R in 4.4.0. On R 4.1–4.3 — versions this package claims to support — those calls fail. The current CI matrix is release/devel/oldrel-1, so no job ever builds an R version where it fires.

  • importFrom(rlang, "%||%") added to NAMESPACE and the roxygen block, kept consistent by hand (roxygen2 unavailable here; entries placed where roxygen2 sorts them)
  • rlang is already in Imports, so no dependency change

Follow-up: adding oldrel-3 to this repo's matrix would let CI catch the next one.

molpathR uses %||% 8 times in R/parsers.R without defining or importing
it, while DESCRIPTION declares R (>= 4.1.0). %||% entered base R in 4.4.0,
so the package is broken on the R versions it claims to support. The CI
matrix (release/devel/oldrel-1) never builds one of them.
@r-heller
r-heller merged commit 9ecd8fe into main Aug 21, 2026
7 checks passed
@r-heller
r-heller deleted the fix/importfrom-null-default branch August 21, 2026 19:27
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.

1 participant