Learn R Programming

serocalculator (version 1.4.0)

expect_snapshot_data: Snapshot testing for data.frames

Description

copied from https://github.com/bcgov/ssdtools with permission (https://github.com/bcgov/ssdtools/issues/379)

Usage

expect_snapshot_data(x, name, digits = 6)

Value

NULL (from testthat::expect_snapshot_file())

Arguments

x

a data.frame to snapshot

name

character snapshot name

digits

integer passed to signif() for numeric variables

Examples

Run this code
if (FALSE) {
expect_snapshot_data(iris, name = "iris")
}

Run the code above in your browser using DataLab