### Installing `remotes` package in R Source: https://github.com/tidymodels/tmwr/blob/main/README.md This snippet installs the `remotes` package from CRAN, which is a prerequisite for installing R packages directly from GitHub. It ensures that the necessary tools for package management are available before proceeding with further installations. ```R install.packages("remotes") ``` -------------------------------- ### Compiling `bookdown` project to HTML in R Source: https://github.com/tidymodels/tmwr/blob/main/README.md This snippet compiles the `bookdown` project, starting from `index.Rmd`, into an HTML book format using the `gitbook` output type. It generates the static HTML files in the `_book` directory, allowing for local viewing of the book's content. ```R bookdown::render_book("index.Rmd", "bookdown::gitbook") ``` -------------------------------- ### Installing TMwR package from GitHub in R Source: https://github.com/tidymodels/tmwr/blob/main/README.md This R code uses the `remotes` package to install the `TMwR` package directly from its GitHub repository. This is necessary to obtain all the required dependencies and source code for reproducing the book's content. It might install development versions of packages. ```R remotes::install_github("tidymodels/TMwR") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.