Skip to content

Scoring functions can give confusing error messages from underlying scoreFACT_any() function #1

Description

@raybaser

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions