This lesson gives a high-level overview of how you can use The Carpentries Workbench to build beautiful and accessible lessons from markdown or RMarkdown sources.
To build this lesson locally, you should follow the setup instructions for the Workbench.
In short, make sure you have R, Git, and Pandoc installed, then open R and use the following commands to install/update the packages needed for the infrastructure:
# register the repositories for The Carpentries and CRAN
options(repos = c(
carpentries = "https://carpentries.r-universe.dev/",
CRAN = "https://cran.rstudio.com/"
))
# Install the template packages to your R library
install.packages(c("sandpaper", "varnish", "pegboard", "tinkr"))
There are two ways to download this lesson from GitHub:
- via the command line:
git clone https://github.com/carpentries/workbench-docs && cd workbench-docs
- via R:
usethis::create_from_github("https://github.com/carpentries/workbench-docs/")
Launch R in the workbench-docs
folder and use this command to build and preview the lesson:
library(sandpaper)
sandpaper::serve()
This should open a web browser with the rendered local version of this lesson, built using the Workbench!