[Deprecated]

check_users_AD(filename, path = getwd())

Arguments

filename

String. File to check.

path

String. Path to file. Defaults to the current working directory.

Value

NULL (invisibly)

Details

Reads in a .txt file for data validation. Checks all user names supplied in the column author_upn against Active Directory using a powershell script to verify that the accounts are valid NPS accounts. The function throws an error and lists any invalid accounts if they are encountered. Additionally, if all accounts are valid the function throws and error if any accounts do not have ORCiDs associated with them (and lists those accounts). If all accounts are valid and have ORCiDs, the function passes.

Examples

if (FALSE) { # \dontrun{
check_users_AD("test_file.txt")} # }