This repository contains the source code for the INFX 511: Introduction to Programming for Data Science and Visualization course book. The published book can be viewed at https://infx511.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 install
You can use the included Makefile
to build the book:
-
make book
to build the HTML version of the book (the output is saved in the saved in the repository's root folder). -
make pdf
to build the PDF version of the book. -
make epub
to build the epub version of the book. -
make all
to build all versions of the book. -
make serve
to serve a local copy of the book for development (with auto-refreshing browser). -
make deploy
to publish the built book tohttps://infx511.github.io
.