Skip to content

Deal with snapshot differences between R CMD check "regular" and "hard" more elegantly #539

@hfrick

Description

@hfrick

In #538 a snapshot changed between R CMD check "regular" and "hard" without the suggested packages.

https://github.com/tidymodels/rsample/actions/runs/10927479579/job/30333727728

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-bootci.R:169:5'): Sufficient replications needed to sufficiently reduce Monte Carlo sampling Error for BCa method ──
Snapshot of code has changed:
old[3:8] vs new[3:16]
    int_bca(bt_small, stats, .fn = get_stats)
  Condition
    Warning:
    Recommend at least 1000 non-missing bootstrap resamples for term `mean`.
+ Message
+   
+   Attaching package: 'purrr'
+   
+   The following object is masked from 'package:testthat':
+   
+       is_null
+   
  Output
    # A tibble: 1 x 6
      term  .lower .estimate .upper .alpha .method

* Run `testthat::snapshot_accept('bootci')` to accept the change.
* Run `testthat::snapshot_review('bootci')` to interactively review the change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions