R/input_validation_functions.R
check_authors_orcid.Rd
Reads in a .txt file for data validation. Checks all the emails listed in the column author_emails and verifies whether these emails have ORCiDs associated with the via an NPS API. If any user account associated with an email does not have an ORCiD associated with it (including all emails that are not valid NPS emails), the function throws an error and lists the emails that do not have ORCiDs associated with them. If all emails are tied to valid NPS accounts with ORCiDs associated with them, the function passes.
check_authors_orcid(
path = getwd(),
filename = "DSbulkUploadR_input.xlsx",
sheet_name
)
NULL (invisibly)
if (FALSE) { # \dontrun{
check_authors_orcid("test_file.txt")} # }