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,
download_method = "libcurl"
)
version of the data dictionary to be used
version of the dataset to be uploaded
can be 'core' or 'outcome'
cohort name: [du.enum.cohorts]
is the name of the data backend of DataSHIELD, default = opal_data
format of the database to be reshaped. Can be [du.enum.input.format]
path to the to-be-uploaded data
action to be performed, can be [du.enum.action]
directly upload the reshaped database to the logged in DataSHIELD server, TRUE or FALSE
default = NORMAL, [du.enum.run.mode]
overrides the generated project name
method to be passed to `method` argument of download.file. Default is "libcurl".
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"
)
}