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
)

Arguments

dict_version

version of the data dictionary to be used

data_version

version of the dataset to be uploaded

dict_kind

can be 'core' or 'outcome'

cohort_id

cohort name

database_name

is the name of the data backend of DataSHIELD, default = opal_data

data_input_format

format of the database to be reshaped. Can be 'CSV', 'STATA', 'SAS' or RDS (R)

data_input_path

path to the to-be-uploaded data

action

action to be performed, can be 'reshape', 'populate' or 'all'

upload

do you want to upload the data (true or false)

run_mode

default = NORMAL, can be TEST and NON_INTERACTIIVE

override_project

overrides the generated project name

Examples

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"
)
}