From 2d364053e91f901079b0c1cc24f85e22c47ad760 Mon Sep 17 00:00:00 2001 From: Chet Ismay Date: Mon, 11 Nov 2024 13:38:21 -0700 Subject: [PATCH] Install infer from GitHub --- index.Rmd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.Rmd b/index.Rmd index f4ecf678d..5b40003e1 100755 --- a/index.Rmd +++ b/index.Rmd @@ -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", @@ -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"