Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Uninformative error when type is NULL in `generate()` #157
As of e756b67 this happens if supply
library(infer) mtcars %>% dplyr::mutate(am = factor(am), vs = factor(vs)) %>% specify(am ~ vs, success = "1") %>% hypothesize(null = "independence") %>% generate(reps = 100, type = NULL) #> Error in if (auto_type != type) stop(paste0("You have specified `type = \"", : аргумент нулевой длины
Probably, there should be informative error message like "
I'll fix this after the upcoming PR for #155 is merged.