R can be downloaded and installed from any CRAN (the Comprehensive R Archive Network) mirrors, e.g., https://cran.rstudio.com. Please note that there will be a few new releases of R every year, and you may want to upgrade R occasionally.
To install the bookdown package, you can type this in R:
This installs all required R packages. You can also choose to install all optional packages as well, if you do not care too much about whether these packages will actually be used to compile your book (such as htmlwidgets):
install.packages("bookdown", dependencies = TRUE)
If you want to test the development version of bookdown on GitHub, you need to install devtools first:
if (!requireNamespace("devtools")) install.packages("devtools") ::install_github("rstudio/bookdown")devtools
R packages are also often constantly updated on CRAN or GitHub, so you may want to update them once in a while:
update.packages(ask = FALSE)
Although it is not required, the RStudio IDE can make a lot of things much easier when you work on R-related projects. The RStudio IDE can be downloaded from https://www.rstudio.com.