Function name changes#241
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report❌ Patch coverage is
|
|
@claude, can you please make the recommended function name changes and change documentation and references throughout. Please update the news and version as well. Please rerun all tests with the function name changes. Keep all edits within this thread. |
|
Claude finished @sschildhauer's task in 13m 7s —— View job Function Renames: CompleteTasks:
SummaryCompleted all 6 function renames end-to-end (the 1 partial rename from the prior commit, plus the 5 still-pending ones):
Updates touched: R source files,
Not done: No deprecation shims for the old names — per the trigger comment's scope ("make the recommended function name changes"), this is a hard rename. Downstream users of the old names will need to update their calls. If you'd prefer soft deprecation via |
Completes the rename initiative started for run_mod -> run_serodynamics: post_summ() -> summarize_posterior() plot_jags_trace() -> plot_trace() plot_jags_dens() -> plot_density() plot_jags_Rhat() -> plot_rhat() plot_jags_effect() -> plot_ess() Source files, examples, tests, snapshot directories, NAMESPACE, roxygen-generated .Rd pages, pkgdown reference index, and articles all updated to the new names. NEWS.md notes the breaking change and DESCRIPTION version bumped to 0.0.0.9056. Co-authored-by: Samuel Hisaji Schildhauer <sschildhauer@users.noreply.github.com>
|
📖 https://ucd-serg.github.io/serodynamics/preview/pr241 |
…ynamics into runmod_namechange
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@claude, please assist in generating the linux snaps from the previous review. Please also review after creating and committing changes. |
|
Claude finished @sschildhauer's task in 5m 46s —— View job Linux Snapshots Generated + Final Review
Snapshot Commit DetailsGenerated the missing Linux/Windows reference snapshots that commit Spot-checked the new files:
Sizes are within ~0.01% of the matching There was an unrelated Final Code ReviewAll previously flagged issues remain fixed. No new issues introduced by this snapshot commit, and no new issues found on a fresh re-read of the renamed files.
One small note (non-blocking): the snapshot commit adds ~50 MB of CSV reference data (1.15M lines) — large but unavoidable for the strat/nostrat curve-params files since they're the full posterior draws. The package already accepted this footprint for the CI should now go green on • Branch: |
These were missing on the branch (only the macOS `darwin/` variant was committed). With no baseline snapshots, ubuntu-latest and windows-latest CI runners saw "new snapshot" errors on all 9 assertions in test-run_serodynamics.R. Generated by running `devtools::test(filter = "run_serodynamics")` on Linux with JAGS 4.3.2 and R 4.6.0; re-running the same filter against the committed files reports PASS 26 | FAIL 0, and the full test suite reports PASS 110 | FAIL 0. Co-authored-by: Samuel Hisaji Schildhauer <sschildhauer@users.noreply.github.com>
|
@claude, please review |
|
Claude finished @sschildhauer's task in 2m 18s —— View job Code Review: PR #241 — Function Name Changes
Summary: Ready to Merge ✅All previously flagged issues are fixed and CI is fully green (9 passed, 1 skipped —
One Minor Pre-existing Issue (Non-blocking)
|
|
Hi @d-morrison, I believe that this PR is ready for merge. I created an issue for the small parenthesis issue in plot_trace. Thank you for taking a look. |
|
@sschildhauer unfortunately we got some merge conflicts (I think from merging #207 just now); please resolve |
Merge commit '91c7b091e601e9ba4acb2d51ca6b59aa4630aef6' #Conflicts: # DESCRIPTION # NEWS.md # inst/WORDLIST # inst/examples/run_mod-examples.R # man/run_mod.Rd # tests/testthat/_snaps/darwin/run_mod/nostrat-curve-params-specpriors.csv # tests/testthat/_snaps/darwin/run_mod/nostrat-curve-params.csv # tests/testthat/_snaps/darwin/run_mod/sim-strat-curve-params.csv # tests/testthat/_snaps/darwin/run_mod/strat-curve-params.csv # tests/testthat/test-plot_jags_densitydx.R # tests/testthat/test-plot_jags_effectivedx.R # tests/testthat/test-plot_jags_rhatdx.R # tests/testthat/test-plot_jags_tracedx.R # tests/testthat/test-run_mod.R
This comment has been minimized.
This comment has been minimized.
The merge with main brought in old test files referencing functions that
were renamed in this PR. These stale tests would fail with "could not
find function" under RUN_HEAVY_TESTS=true.
Also removed test-run_mod.R: its heavy tests call the deprecated run_mod()
shim, which emits lifecycle::deprecate_warn(). With lifecycle_verbosity =
"error" (set in tests/testthat/setup.R), the deprecation becomes an error
that suppressWarnings() cannot catch. The underlying functionality is fully
covered by test-run_serodynamics.R.
Also fixed double-asterisk typo in NEWS.md bullet ("* *" -> "*").
Co-authored-by: sschildhauer <sschildhauer@ucdavis.edu>
…ynamics into runmod_namechange
|
Claude finished @sschildhauer's task in 2m 24s —— View job Code Review: PR #241 — Function Name Changes
Summary: Ready to Merge ✅The merge conflict with Version was bumped to Previously Reported Issues: All Fixed ✅
Merge Conflict Resolution (New in This Sync)Commits
These resolutions are correct. Pre-existing Issue (Non-blocking, Tracked Separately)
# Current (wrong):
if (sum(lengths(trace_strat_list) == 1)) {
# Should match siblings plot_rhat.R:82 and plot_ess.R:81:
if (sum(lengths(trace_strat_list)) == 1) {This was pre-existing before this PR and is tracked in a separate issue — out of scope here. Spot Checks
LGTM — approve and merge whenever. |
Renaming functions as recommended by Kristen:
run_mod -> run_serodynamics
post_summ -> summarize_posterior
plot_jags_trace -> plot_trace
plot_jags_dens -> plot_density
plot_jags_Rhat -> plot_rhat
plot_jags_effect -> plot_ess
Will change all documentation and references throughout package.