tidymodels/tidymodels
Easily install and load the tidymodels packages
What is tidymodels?
tidymodels is a "meta-package" for modeling and statistical analysis in R. Instead of being one single tool, it bundles together many smaller packages that share a common design philosophy, grammar, and data structures — the same philosophy used by the popular tidyverse collection of data tools.
Think of it as a starter kit: when you install and load tidymodels, you get a whole ecosystem of modeling tools that work together smoothly.
Core packages included
When you load tidymodels, these packages come along automatically:
| Package | What it does (in plain terms) |
|---|---|
| broom | Takes the messy output of built-in R functions (like lm, nls, or t.test) and turns it into tidy, easy-to-read data tables. |
| dials | Tools to create and manage the values of "tuning parameters" — the knobs you adjust when optimizing a model. |
| dplyr | A grammar for manipulating data (filtering, sorting, summarizing, etc.). |
| ggplot2 | A grammar for creating graphics and charts. |
| infer | A modern approach to statistical inference (testing hypotheses, estimating confidence intervals). |
| parsnip | A tidy, unified interface for creating models — so you can use the same syntax across different model types. |
| purrr | A toolkit for functional programming (working with functions and lists in a clean way). |
| recipes | A general data preprocessor. It helps you create model-ready data by handling feature engineering, filling in missing values, and other preparation steps. |
| rsample | Infrastructure for resampling data — splitting it into training and testing sets so models can be validated. |
| tibble | A modern re-imagining of the data frame (R's basic table structure), with nicer printing and behavior. |
| tune | Functions to optimize model hyper-parameters (the settings that control how a model learns). |
| workflows | Methods to combine pre-processing steps and models into a single object, so you can manage the whole pipeline together. |
| yardstick | Tools for evaluating models — measuring accuracy, RMSE (root mean square error), and other performance metrics. |
A full list of all tidymodels functions across different CRAN packages is available at https://www.tidymodels.org/find/.
How to install
Stable version from CRAN:
install.packages("tidymodels")
Development version from GitHub:
# install.packages("pak")
pak::pak("tidymodels/tidymodels")
What happens when you load it
When you run library(tidymodels), the package prints out the versions of all attached packages and any naming conflicts (e.g., dplyr::filter() masks stats::filter()). This transparency helps you know exactly what's loaded.
Contributing and getting help
- The project has a Contributor Code of Conduct — by contributing, you agree to follow it.
- For questions and discussions, post on RStudio Community (with the
tidymodelstag). - Most bugs belong on the GitHub repo of the individual package, not the meta-package itself. If you think the issue is with the meta-package, submit an issue on the tidymodels GitHub repo.
- When reporting issues, you're encouraged to create a reprex (a minimal, reproducible example) to clearly communicate your problem.
- More details are in the contributing guidelines at https://www.tidymodels.org/contribute/ and help page at https://www.tidymodels.org/help/.
In one sentence
tidymodels is a one-stop shop that bundles together a set of R packages for the entire modeling workflow — from data preparation, to model building, to evaluation — all designed to work together seamlessly.
Related
- Project
- Project
- Project
- Project