Changelog
Source:NEWS.md
resultcheck 0.2.1
-
snapshot()now improves script-name detection in non-interactive and test contexts by skipping editor-context lookup there and relying on call-stack source references before falling back to"interactive".
resultcheck 0.2.0
CRAN release: 2026-05-03
-
snapshot()now usesrstudioapi::getSourceEditorContext()$path(in RStudio/Positron) as the primary method to detect the calling script name, falling back to the call stack and then"interactive". -
snapshot()andserialize_value()now apply built-in class-based method defaults automatically when no explicitmethodargument is provided. Statistical model classes (e.g.lm,glm,coxph,kmeans) are serialized usingbroom::tidy,broom::glance, and/orbroom::augmentwhen thebroompackage is available. - When
broomis not installed, built-in class defaults that rely on it are silently skipped and theprint+strfallback is used. User-configured class defaults that reference unavailable packages still raise an error. - The full list of supported classes is in
inst/extdata/snapshot-method-defaults.R. - Added
broomtoSuggeststo enable the new built-in class defaults. - Add “Get Started” and FAQ vignettes to clarify workflow and common questions.
resultcheck 0.1.4
CRAN release: 2026-04-21
- Rename project config file from
resultcheck.ymlto_resultcheck.yml(legacyresultcheck.ymlis still read for backward compatibility). - Change default snapshot location to
tests/_resultcheck_snaps/instead of_resultcheck_snapshots/. - Add configurable snapshot directory support via
snapshot.dirin_resultcheck.yml. - Add
with_example()to run package examples in temporary projects undertempdir(), avoiding writes to user home/package/getwd locations. - Update examples/docs to be executable without
\\dontrun{}and usesetup_sandbox()with no required file arguments for empty sandboxes. -
snapshot()now warns with the exact target path before interactive writes; default path remains configurable viasnapshot.dirin_resultcheck.yml.
resultcheck 0.1.2
- Add precision rounding option in
_resultcheck.ymlto stabilize snapshot comparisons across runs. - Add
[ignored]markers insnapshot()output to explicitly indicate excluded components.
resultcheck 0.1.1
- Fixed snapshot inconsistencies caused by variable serialization width and directory checks, improving reliability of result comparisons.
- Added method parameter to snapshot() for print/str/both serialization.
resultcheck 0.1.0
Initial release
-
snapshot()— create and verify human-readable snapshots of R objects (models, data frames, tables, vectors, etc.). Interactive mode warns and prompts; testing mode (insiderun_in_sandbox()) errors on mismatch. -
setup_sandbox()— copy project files and/or directories into a temporary directory for isolated testing. Accepts individual file paths or entire subdirectories. -
run_in_sandbox()— execute an R script inside the sandbox with the working directory set to the sandbox root, whilefind_root()andsnapshot()transparently resolve back to the original project root. -
cleanup_sandbox()— remove the sandbox directory after testing. -
find_root()— locate the project root using_resultcheck.yml,.Rproj, or.gitas markers.