powered by
This function removes new snapshots created by vdiffr tests. It is useful when you want to remove new snapshots that were created during testing and are no longer needed.
vdiffr
removeVdiffrNewSnapShots( pkg = getwd(), snapDir = file.path("tests", "testthat", "_snaps"), verbose = TRUE )rmns( pkg = getwd(), snapDir = file.path("tests", "testthat", "_snaps"), verbose = TRUE )
rmns( pkg = getwd(), snapDir = file.path("tests", "testthat", "_snaps"), verbose = TRUE )
NULL (invisible) - used for side effects
The path to the package directory.
The path to the directory containing the snapshots. Default is tests/testthat/_snaps. If this directory isn't valid, nothing happens.
tests/testthat/_snaps
Logical; if TRUE, prints the paths of the new snapshots that
# \donttest{ removeVdiffrNewSnapShots() # }
Run the code above in your browser using DataLab