Upload dictionaries and data into the DataSHIELD backend.
du.upload(
dict_version,
data_version = "1_0",
dict_kind,
cohort_id,
database_name = "opal_data",
data_input_format = du.enum.input.format()$CSV,
data_input_path,
action = du.enum.action()$ALL,
upload = TRUE,
run_mode = du.enum.run.mode()$NORMAL,
override_project = NULL
)
version of the data dictionary to be used
version of the dataset to be uploaded
can be 'core' or 'outcome'
cohort name
is the name of the data backend of DataSHIELD, default = opal_data
format of the database to be reshaped. Can be 'CSV', 'STATA', 'SAS' or RDS (R)
path to the to-be-uploaded data
action to be performed, can be 'reshape', 'populate' or 'all'
do you want to upload the data (true or false)
default = NORMAL, can be TEST and NON_INTERACTIIVE
overrides the generated project name
if (FALSE) {
du.upload(
data_input_format = "CSV",
data_input_path = "~/path-to-file/all_measurements_v1_2.csv",
data_version = "1_0",
dict_version = "2_1",
cohort_id = "gecko"
)
}