Import the .zip archive of a TrialMaster trial export as a list of dataframes. The archive filename should be leaved untouched as it contains the project name and the date of extraction.
Generate a .rds cache file for future reads.
If 7zip is not installed or available, use read_all_xpt() instead.
The TM export should be of type SAS Xport, with the checkbox
"Include Codelists" ticked.
Arguments
- archive
[
character(1)]
the path to the archive- ...
unused
- use_cache
[
mixed(1): "write"]
controls the.rdscache. IfTRUE, read the cache if any or extract the archive and create a cache. IfFALSEextract the archive without creating a cache file. Can also be"read"or"write".- clean_names_fun
use
edc_clean_names()instead.- subdirectories
[
logical(1)]
whether to read subdirectories- pw
[
character(1)]
The password if the archive is protected. To avoid writing passwords in plain text, it is probably better to useoptions(trialmaster_pw="xxx")instead though.- verbose
[
numeric(1)]
one ofc(0, 1, 2). The higher, the more information will be printed.- key_columns
deprecated
Value
a list containing one dataframe for each .xpt file in the folder, the extraction date (datetime_extraction), and a summary of all imported tables (.lookup).
See also
Other EDCimport reading functions:
read_all_csv(),
read_all_sas(),
read_all_xpt()
