removeVdiffrNewSnapShots: Remove New Snapshots from vdiffr Tests

View source: R/packageDevelopment.R

removeVdiffrNewSnapShotsR Documentation

Remove New Snapshots from vdiffr Tests

Description

[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


removeVdiffrNewSnapShots()



FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.