Skip to content

build: keep stray Rplots.pdf out of the build tarball#107

Merged
ehrlinger merged 1 commit into
devfrom
chore/rbuildignore-rplots
May 29, 2026
Merged

build: keep stray Rplots.pdf out of the build tarball#107
ehrlinger merged 1 commit into
devfrom
chore/rbuildignore-rplots

Conversation

@ehrlinger

Copy link
Copy Markdown
Owner

Summary

Add Rplots\.pdf$ to .Rbuildignore so a stray Rplots.pdf never gets bundled into the build tarball.

Why

devtools::check / run_examples execute the \donttest gg_* examples, which end in plot(...) and auto-print to the default graphics device, leaving tests/testthat/Rplots.pdf. It's already in .gitignore (never committed), but R CMD build uses .Rbuildignore — which didn't exclude it — so a local build picked up the ~6.9 MB stray and inflated the tarball. No test creates it (verified across the suite under both default and NOT_CRAN=true); it's purely an example-execution artifact.

This is preventative build hygiene — no package code or behaviour change.

🤖 Generated with Claude Code

@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.15%. Comparing base (bfef645) to head (98a5e55).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #107   +/-   ##
=======================================
  Coverage   87.15%   87.15%           
=======================================
  Files          46       46           
  Lines        4016     4016           
=======================================
  Hits         3500     3500           
  Misses        516      516           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Pull request overview

This PR updates the package build ignore rules to prevent accidental inclusion of a locally generated Rplots.pdf artifact in R CMD build tarballs, keeping build outputs stable and appropriately sized.

Changes:

  • Add an .Rbuildignore rule for Rplots\.pdf$ so example/test plotting artifacts aren’t bundled into the source tarball.
  • Document the rationale with inline comments (noting it’s already covered by .gitignore).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ehrlinger ehrlinger merged commit b6ea374 into dev May 29, 2026
10 checks passed
@ehrlinger ehrlinger deleted the chore/rbuildignore-rplots branch May 29, 2026 18:31
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