Introduction to Implementing an Exercise
Overview
Teaching: 30 min
Exercises: 10 minQuestions
How do you write an exercise?
Objectives
Know how to write an exercise
hello carpentry instructors!
print("hello carpentry instructors!")
x <- 4
x <- c(4,)
Missing element after comma
Thisis crown down.
This is our first exercise
What is required as an exercise
List of the elements that you need inside an exercise to comply with the Carpentries style.
Solution
Exercise are inisde a
>
- block and each block must have:
- a title
- exercise body
- solution to exercise
You can use code blocks inside exercises.
How to use R code in R-markdown
Provide an exame that is to be run by R Markdown.
Solution
Exercise are inisde a
>
- block and each block must have:x <- 1 1 -> y x + y
Key Points
Exercise are written in side a
>
- block.