Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

melt error message for bad measure.vars could be more informative/specific #6512

Open
tdhock opened this issue Sep 20, 2024 · 0 comments
Open
Labels

Comments

@tdhock
Copy link
Member

tdhock commented Sep 20, 2024

Right now we have the following error message, which is ok:

> melt(data.table(x1=1,x2=2,y1=3,y2=4),measure.vars=c("x1","x2","z1"))
Error in melt.data.table(data.table(x1 = 1, x2 = 2, y1 = 3, y2 = 4), measure.vars = c("x1",  : 
  One or more values in 'measure.vars' is invalid.

it would be even better if we could tell the user specifically which entries are invalid, and how to fix the issue, for example "One or more values in 'measure.vars' is invalid; please fix by removing [z1]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant