This function takes the data frame or tibble that is supposed to contain a valid quiz submission and checks that structure and content are valid

check_submission(quizdf, quizid)

Arguments

quizdf

Data frame of quiz that needs to be checked

quizid

ID of quiz based on file name, needs to match quizid column entry in spreadsheet

Value

An error message if it's not a valid quiz data frame, otherwise NULL