Provides a wrapper around run_app()
. Unlike the function run_app()
, this
function stores data in a temporary folder and cleans up after itself after
use. Useful during development, when tweaking new study data and metadata for
use with ClinSight. Note that, when using this function, any database files
needed for ClinSight will be renewed and any file path specified in the
config.yml
file will be ignored.
Usage
test_clinsight(
clinsight_data = clinsightful_data,
meta_data = metadata,
clinsight_config = "test"
)
Arguments
- clinsight_data
A data frame with (ClinSight compatible) study data. If not provided, the example study data in the ClinSight package will be used.
- meta_data
A list of data frames with (ClinSight compatible) metadata. If not provided, the example metadata in the ClinSight package will be used
- clinsight_config
A character vector with the ClinSight configuration to use. The standard settings should be sufficient for most testing cases.
Details
This function is only meant for testing and development purposes. For use in
production, instead use the function run_app()
directly.