About this website
Course materials and website for Visualizing Social Data, which I am teaching at Duke University in the Spring of 2024.
Acknowledgements
Many thanks to the frighteningly energetic and exceedingly helpful Andrew Heiss for, as usual, being ahead of the adoption curve with these tools and making several of his own courses publicly available. Much of the back-end code and the targets
pipeline used here has been lightly-adapted from Andrew’s work.
Tools
Previously I built this and similar sites using a combination of RMarkdown, hugo, a Makefile, and various pieces of string. This time everything is done with Quarto for the documents, targets
to manage the build pipeline (instead of make
), renv
to control the build environment (instead of, uh, nothing
). The slides are made with assistance from my own convenience kjhslides
package, which I do not recommend you use because it’s janky and poorly documented.
The idea is that you can build the whole thing—site, slides, and all—in a controlled way with a recent version of R and RStudio.
- The repository for the whole project is on GitHub.
- Open
vsd.Rproj
to launch the project in RStudio. (Learn more about RStudio projects.) - RStudio should ask whether you want to install the
renv
package, or you can install it yourself by runninginstall.packages("renv")
in the R console. - Run
renv::restore()
in the R console to install all the required packages for the project. - Run
targets::tar_make()
in the R console to build everything.
In practice there will probably be some hiccups, but in my experience renv
really has greatly narrowed the yawning abyss of dependency hell that one much traverse to reproduce a complex project.