I would like to have several R code chunks in several chapters of a bookdown book.
However, I am struggling with where to put setup chunks and call libraries.
It sounds like if I do the default (K-M), then I can put one setup chunk in index.Rmd with all libraries for all future chapters. Is this correct?
If I want to use M-K rendering, as some have advised, do I then need a setup chunk in each chapter with the libraries used in each chapter?
There is not a lot of detail in section 1.4 of the bookdown book to guide me.
I am getting a recurring error in the Build Site step on Netlify
Build site
[error]Process completed with exit code 1.
Run Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE)'
Quitting from lines 19-22 (rmrwr.Rmd)
[error]Error in library(tidyverse) : there is no package called 'tidyverse'
when I have called this library in the setup chunk.
Clearly I am doing something wrong.
Ideas?