Skip to contents

Test data can be downloaded if download = TRUE, or a requested snapshot file is not found, and store a snap shot in the snapshot_dir. If an existing snapshot file is found then load this data to use in future tests


test_download(DataClass_obj, download, snapshot_path)



The R6Class object to perform checks on. Must be a DataClass or DataClass child object.


Logical check to download or use a snapshot of the data


character_array the path to save the downloaded snapshot to.

See also

Functions used for testing data is cleaned and processed correctly expect_clean_cols(), expect_columns_contain_data(), expect_processed_cols(), test_cleaning(), test_download_JSON(), test_processing(), test_return()