This is the new Carpentries template. It is written in RMarkdown, which is a variant of Markdown that allows you to render code inside the lesson. Please refer to the lesson example for full documentation.
What you need to know is that there are three block quotes required for a valid Carpentries lesson template:
questions
These are displayed at the beginning of the episode to prime the learner for the content.objectives
These are the learning objectives for an episodekeypoints
These are displayed at the end of the episode to reinforce the objectives.No matter where these blocks appear, they will always be placed at the right part of the html page.
Teaching: 10
Exercises: 2
Questions
{sandpaper}
?Objectives
.Rmd
files for lessons even if you don’t need to generate any codesandpaper::check_lesson()
to identify any issues with your lessonsandpaper::build_lesson()
to preview your lesson locallyWhat is the output of this command?
paste("This", "new", "template", "looks", "good")
[1] "This new template looks good"
You can add a line with at least three colons and a solution
tag.
You can also include figures:
pie(
c(Sky = 78, "Sunny side of pyramid" = 17, "Shady side of pyramid" = 5),
init.angle = 315,
col = c("deepskyblue", "yellow", "yellow3"),
border = FALSE
)
One of our episodes contains \(\LaTeX\) equations when describing how to create dynamic reports with {knitr}, so we now use mathjax to describe this:
$\alpha = \dfrac{1}{(1 - \beta)^2}$
becomes: \(\alpha = \dfrac{1}{(1 - \beta)^2}\)
Cool, right?