Skip to contents

The goal of snapshot.data is to export the expect_snapshot_data() function from https://github.com/bcgov/ssdtools, to test functions in other projects, without having to import the entire ssdtools package.

See https://github.com/bcgov/ssdtools/issues/379#issuecomment-2372581429.

Installation

You can install the development version of snapshot.data from GitHub with:

# install.packages("pak")
pak::pak("d-morrison/snapshot.data")

Example

This is a basic example which shows you how to solve a common problem:

library(snapshot.data)
## basic example code