Internal function to test allofus package on fake database
Source:R/aou_connect.R
aou_test_connect.Rd
Internal function to test allofus package on fake database
Usage
aou_test_connect(
cache = TRUE,
cache_dir = Sys.getenv("AOU_CACHE_DIR"),
overwrite = FALSE
)
Arguments
- cache
logical indicating whether to cache the downloaded data
- cache_dir
character string specifying the directory to store cached data
- overwrite
logical indicating whether to overwrite existing cached data
Details
This function downloads a test OMOP database from the OHDSI Eunomia package, renames tables and fields to lowercase, removes tables that are not relevant to All of Us, adds missing fields to relevant tables, and drops fields that are not relevant to All of Us. It then tests the connection to the database by checking if the person_id column is in the person table.