Skip to contents

This function checks if the user CSV file for control meets specific upload requirements, including necessary columns and formatting checks. Errors will be thrown if requirements are not met.

Usage

validate_and_format_reference_file(
  user_file,
  file_column_attr,
  bind_data = NULL
)

Arguments

user_file

The user's CSV file as a data frame.

file_column_attr

A list containing attributes of file columns such as required, conditional, and optional columns.

Value

A cleaned and checked user_file ready for further processing.