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

Uninformative error when response is NULL in `specify()` #156

echasnovski opened this Issue Jul 24, 2018 · 0 comments


None yet
2 participants
Copy link

echasnovski commented Jul 24, 2018

As of e756b67 this happens if specify NULL response in formula argument:


data.frame(x = 1:10, y = 11:20) %>%
  specify(NULL ~ y)
#> Error in if (!(as.character(attr(x, "response")) %in% names(x))) {: аргумент нулевой длины

Probably, there should be informative error message like "Supply not-NULL response variable.".

I'll fix this after the upcoming PR for #155 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment