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

Fixes for failing CRAN checks #1645

Merged
merged 5 commits into from
Aug 12, 2024
Merged

Conversation

t-kalinowski
Copy link
Member

Recently, CRAN checks for reticulate started failing on macOS-oldrel.

After some investigation, it appears that the macOS-oldrel runners—and only the macOS-oldrel runners—set the environment variable _R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_=false when running checks.

My understanding is that this results in the vignettes being processed with knitr::purl(), which converts them into a script. The script is then evaluated as part of the checks. In the context where the script is evaluated, knitr calls like knitr::opts_chunk$set(eval = FALSE) do not function, and chunks that are not meant to be evaluated in vignettes still get evaluated, leading to errors, and CRAN check failures.

This is affecting downstream packages and is also the reason why CRAN machines have not built a binary for the latest release of reticulate.

This issue is also impacting other packages:

RcppCore/RcppArmadillo#447
yihui/knitr#2338

@t-kalinowski t-kalinowski merged commit ddab6a6 into main Aug 12, 2024
16 checks passed
@t-kalinowski t-kalinowski deleted the fixes-for-cran-macos-oldrel branch August 12, 2024 21:37
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