Skip to content

Commit

Permalink
Install infer from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
ismayc committed Nov 11, 2024
1 parent d341f1e commit 2d36405
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ opts_chunk$set(
# Install CRAN packages needed
needed_CRAN_pkgs <- c(
# Packages used by book reader
"dygraphs", "fivethirtyeight", "gapminder", "ggplot2movies", "infer", "ISLR2",
"dygraphs", "fivethirtyeight", "gapminder", "ggplot2movies", # "infer",
"ISLR2",
"janitor", "knitr", "moderndive",
"nycflights23", "scales", "tidyverse", "broom", "bookdown",
Expand All @@ -87,6 +88,14 @@ if (length(new_pkgs)) {
install.packages(new_pkgs, repos = "http://cran.rstudio.com")
}
if (!"remotes" %in% installed.packages()) {
install.packages("remotes", repos = "http://cran.rstudio.com")
}
if (!"infer" %in% installed.packages()) {
remotes::install_github("tidymodels/infer")
}
# Used in 95-appendixE.Rmd
needed_pkgs <- unique(c(
needed_CRAN_pkgs, "bookdown"
Expand Down

0 comments on commit 2d36405

Please sign in to comment.