Cran fix release 1.3.0#464
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
|
There was a problem hiding this comment.
Pull request overview
This PR addresses CRAN errors by converting expect_snapshot_data() from an internal function accessed via ssdtools::: to a properly exported function within the package. The function was copied from the ssdtools package with permission and is now included in the package's public API.
Key Changes
- Added
expect_snapshot_data()as an exported internal function with full implementation and documentation - Updated all test files to use the local
expect_snapshot_data()instead ofssdtools:::expect_snapshot_data() - Updated auto-generated documentation files from roxygen2 7.3.3
Reviewed changes
Copilot reviewed 14 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| R/expect_snapshot_data.R | New file implementing the snapshot testing function for data frames, copied from ssdtools |
| R/check_strata.R | Removed invalid @dev roxygen tag |
| tests/testthat/test-strata.R | Updated to use local expect_snapshot_data() instead of ssdtools::: |
| tests/testthat/test-sim_pop_data_multi.R | Updated to use local expect_snapshot_data() instead of ssdtools::: |
| tests/testthat/test-sim_pop_data.R | Updated to use local expect_snapshot_data() with explicit name parameter |
| tests/testthat/test-as_sr_params.R | Updated to use local expect_snapshot_data() instead of ssdtools::: |
| tests/testthat/test-analyze_sims.R | Updated to use local expect_snapshot_data() instead of ssdtools::: |
| tests/testthat/test-ab.R | Updated to use local expect_snapshot_data() and reformatted indentation |
| tests/testthat/_snaps/graph.curve.params/*.svg | Added white background rectangles to SVG snapshots |
| tests/testthat/_snaps/autoplot.pop_data/*.svg | Removed stroke-linejoin: miter attribute from legend rectangles |
| tests/testthat/_snaps/autoplot.curve_params/autoplot-curve-params.svg | Added white background rectangle to SVG snapshot |
| man/expect_snapshot_data.Rd | New documentation file for exported function |
| man/check_strata.Rd | Removed \keyword{internal} tag |
| man/plot_curve_params_one_ab.Rd | Auto-generated documentation updates from ggplot2 (includes typo fix) |
| NAMESPACE | Added export for expect_snapshot_data |
| DESCRIPTION | Version bump to 1.3.0.9060 and RoxygenNote update to 7.3.3 |
| NEWS.md | Added entry documenting the change |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@d-morrison Checks pass except for pkgdown. I asked Copilot to explain the error and this is the response. This is my first time using it, so I'm hesitant to make a change based on Copilot, but what do you think?
|
|
@kristinawlai the key error message is:
if you run
note that the file path begins with |
Cran fix release 1.3.0 em
Co-authored-by: Douglas Ezra Morrison <demorrison@ucdavis.edu>
Co-authored-by: Douglas Ezra Morrison <demorrison@ucdavis.edu>
Co-authored-by: Douglas Ezra Morrison <demorrison@ucdavis.edu>
|
📕 Preview documentation for this PR has been cleaned up. |
|
@d-morrison This is ready to go and passes all checks + |


Fixing CRAN errors from
expect_snapshot_data()