This repository contains the source code for the INFO 340: Client-Side Web Development course book. The published book can be viewed at https://info340.github.io/.
Note that all edited source files (including images and other assets) should be edited within the root folder; files in the build directory may be overwritten.
You should be able to install all required R dependencies using packrat: simply restart R (e.g., through an interactive session in the terminal) in order to automatically install the required libraries.
- If that doesn't work, you should be able to use the
packrat::restore()function. You may need to do this through RStudio. - For issues creating symlinks, delete the
packrat/lib-R/folder and reinitialize
Additionally, you may need to install the following libraries separately:
Pandoc (for compiling the R-Markdown). But you may just need to specify the path.
LaTeX for building to
pdf(MiKTeX for Windows, MacTex on Mac).
You will also need to install node dependencies for Prism syntax highlighting:
npm installYou can use the included Makefile to build the book:
make bookto build the HTML version of the book (the output is saved in the saved in the repository's root folder).make pdfto build the PDF version of the book.make epubto build the epub version of the book.make allto build all versions of the book.make serveto serve a local copy of the book for development (with auto-refreshing browser).make deployto publish the built book tohttps://info340.github.io.