This function takes in a file with the required pre-validated input data (see run_input_validation) and uses it to populate the core bibliography tab for DataStore references. It currently supports AudioRecording and GenericDocument reference types.

write_core_bibliography(
  path = getwd(),
  filename = "DSbulkUploadR_input.xlsx",
  sheet_name,
  row_num,
  dev = TRUE
)

Arguments

path

String. Path to xlsx file in filename. Defaults to getwd().

filename

String. The name of the input.xlsx file containing data to be added to the reference page. Defaults to "DSbulkUploadR_input.xlsx".

row_num

Integer. The row in the file of the xlsx sheet to be used

dev

Logical. Whether data should be written to the development server or not. Defaults to TRUE.

reference_id

Integer. The 7-digit DataStore reference ID where data will be written

sheet

String. The name of the sheet within the xlsx to get data from.

Value

NULL (invisibly)

Examples

if (FALSE) { # \dontrun{
write_core_bibliography(reference_id = 1234567,
                        filename = "DSbulkUploadR_input.xlsx",
                        row_num = 1,
                        sheet = "AudioRecording",
                        path = getwd(),
                        dev = TRUE)} # }