powered by
copied from https://github.com/bcgov/ssdtools with permission (https://github.com/bcgov/ssdtools/issues/379)
expect_snapshot_data(x, name, digits = 6)
NULL (from testthat::expect_snapshot_file())
testthat::expect_snapshot_file()
a data.frame to snapshot
character snapshot name
integer passed to signif() for numeric variables
signif()
if (FALSE) { expect_snapshot_data(iris, name = "iris") }
Run the code above in your browser using DataLab