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

[vignette] add purl = FALSE to chunks using ggplot2. fixes #1073 #1128

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

JanMarvin
Copy link
Owner

As discussed in yihui/knitr#2338 this solves #1073.

Unfortunately, I can't say I fully understand the problem (and I can't say I'm a big fan of a certain party making everyone's life harder by letting people figure it out for themselves).

If the environment variable _R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_ is false, for some reason R CMD check openxlsx2_* throws an error with the chart vignette in sections containing ggplot2 (and print()). I assume this is somehow due to the fact that the print() statement is not available in non-interactive mode and another option would be to look for interactive()? Anyway, this problem is hidden with R CMD check --as-cran openxlsx2_*, which disables knitr::purl().

Now for some reason the CRAN oldrel Macs are configured differently than all other machines ...

What's important to me is that the code in the vignettes is valid and works (and that I - preferably - never have to check that), so I didn't want to silence those parts entirely. Otherwise, I think it's fair to assume that no one else in the world is running R on a system configured similarly to the CRAN machines, so hopefully additional checks shouldn't be necessary.

@JanMarvin JanMarvin merged commit 5d432e9 into main Sep 7, 2024
9 checks passed
@JanMarvin JanMarvin deleted the gh_issue_1073_pt2 branch September 7, 2024 09:18
@olivroy olivroy linked an issue Sep 9, 2024 that may be closed by this pull request
3 tasks
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.

Post release CRAN issues
1 participant