R/input_validation_functions.R
check_ref_type.Rd
Reads in a .txt file for data validation. Checks the values supplied in the column reference_type using the DataStore API to determine whether they are valid reference types, as stored in the DataStore backend. Note that the Reference Type listed on the DataStore web page (e.g. Audio Recording) is NOT the correct, valid reference type. In this case the valid reference type would be AudioRecording. If any reference type is invalid, the function throws an error and prints a list of the invalid reference types. If all reference types are valid, the function passes.
check_ref_type(
path = getwd(),
filename = "DSbulkUploadR_input.xlsx",
sheet_name
)
NULL (invisibly)
if (FALSE) { # \dontrun{
check_ref_type("test_file.txt")} # }