3.4 Using RStudio Console
In the RStudio console, you can run the following code: > bookdown::render_book(input,output_format,output_file,params)
Where:
- input is the inpute file (i.e. “index.Rmd”);
- output_format is whether you want “clavertondown::gitbook_clav”, “clavertondown::pdf_clva” etc;
- output_file is the name of the file being created;
- params is where you can set your parameters to be true or false.
For example, the following code will knit all formats while setting the parameter soln to TRUE.
bookdown::render_book(input=“index.Rmd”,output_format = “all”,output_file = “Lecture Notes”,params = list(soln = TRUE))