search_for_newer_data {EDCimport} | R Documentation |
Search for newer data
Description
Search in some folders if a TrialMaster database more recent than the current extraction is present. By default, it will search the "data" folder and the OS usual "Downloads" folder. If a newer database is found, user will be asked if they want to move it to the "data" folder.
Usage
search_for_newer_data(
archive,
...,
source = path_home("Downloads"),
target = "data",
ask = TRUE,
advice = TRUE
)
Arguments
archive |
TM archive path, giving the project name and date |
... |
unused |
source |
the path vector to be searched, default to both "data" and the usual "Downloads" folder |
target |
the path where files should be copied |
ask |
whether to ask the user to move the file to "data" |
advice |
whether to advice how to move it instead, if |
Value
the path to the newer file, invisibly.
Examples
## Not run:
archive = "data/MYPROJECT_ExportTemplate_xxx_SAS_XPORT_2024_06_01_12_00.zip"
#tm = read_trialmaster(archive)
search_for_newer_data(archive)
## End(Not run)
[Package EDCimport version 0.5.2 Index]