Download an example database which was simulated to include an example of a typical EMR database.

emr_download_example_data(dir = getwd(), temp_dir = tempdir())

Arguments

dir

Directory to save the database to. Default: current working directory.

temp_dir

Directory to save the temporary downloaded file to. Change if your system has a small `/tmp`` directory

Value

None. The database is saved under the name `sample_db` in the specified directory.

Examples

# \donttest{
emr_download_example_data()
#> Extracting data...
#> Downloaded example database to /tmp/RtmpGXo75k/file126253719dba/reference/sample_db
# }

# \dontshow{
unlink("sample_db", recursive = TRUE)
# }