When using a scoring function for a specific instrument (e.g., scoreFACTGOG_Ntx11), unhelpful and confusing error messages from the underlying workhorse scoreFACT_any function can be given to the user.
For example:
> scoreFACTGOG_Ntx11(df, id = NULL, AConly = TRUE)
Error in scoreFACT_any(df = df, id = id, namesAC = c("Ntx1", "Ntx2", "Ntx3", :
At least 1 of the 'namesAC' variable names is not in your df.
Make sure they are typed correctly, and each in quotes.
Ideal behavior would reference the user-called function (if any), state that the user's variable names are not as expected, and then list the expected variable names.
When using a scoring function for a specific instrument (e.g.,
scoreFACTGOG_Ntx11), unhelpful and confusing error messages from the underlying workhorsescoreFACT_anyfunction can be given to the user.For example:
Ideal behavior would reference the user-called function (if any), state that the user's variable names are not as expected, and then list the expected variable names.