7.2 Using ClavertonDown for the first time

I suggest that you download the files which were used to create this document:

Put them in a folder together, open index.Rmd in RStudio and use the Knit menu to compile the various formats. If this doesn’t work then something is wrong (get in touch Bath people!). The PDF command creates standard print, clear print and large print PDF.

Then… read the files.

7.2.1 Using the command line

If you prefer to compile from the system command line or via a script then commands along the lines of the below will work. You need to run all five to complete the full set of transformations in the example preamble.

Rscript -e “bookdown::render_book(‘index.Rmd’,‘clavertondown::gitbook_clav’)”

Rscript -e “bookdown::render_book(‘index.Rmd’,‘clavertondown::html_clav’)”

Rscript -e “bookdown::render_book(‘index.Rmd’,‘clavertondown::pdf_clav’)”

Rscript -e “bookdown::render_book(‘index.Rmd’,‘clavertondown::epub_clav’)”

Rscript -e “bookdown::render_book(‘index.Rmd’,‘clavertondown::word_clav’)”

The pdf_clav command renders standard print, clear print and large print PDF.