Skip to contents

[Experimental]

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.

Usage

removeVdiffrNewSnapShots(
  pkg = getwd(),
  snapDir = file.path("tests", "testthat", "_snaps"),
  verbose = TRUE
)

rmns(
  pkg = getwd(),
  snapDir = file.path("tests", "testthat", "_snaps"),
  verbose = TRUE
)

Arguments

pkg

The path to the package directory.

snapDir

The path to the directory containing the snapshots. Default is tests/testthat/_snaps. If this directory isn't valid, nothing happens.

verbose

Logical; if TRUE, prints the paths of the new snapshots that

Value

NULL (invisible) - used for side effects

Examples

# \donttest{
removeVdiffrNewSnapShots()
# }