if (FALSE) { # rlang::is_installed("leaps")
# load libraries for models and data
library(leaps)
# fit model
all_fits <- regsubsets(hp ~ ., mtcars)
# summarize model fit with tidiers
tidy(all_fits)
}
Run the code above in your browser using DataLab