1. What is this About?
This will not show up on slides.
1.1. Some simple asciidoc
-
A list with a link.
-
Yet another entry in the list.
2. Including Code
Do not use the include macro provided by asciidoc!
a <- c(2, 3, 4, 10) # <1> value <- 0 # <2> for (a_i in a) { # <3> value <- value + a_i # <4> } print(value) # <5>
## [1] 19
3. A new section
my_sum <- function(x) {
value <- 0
for (x_i in x) {
value <- value + x_i
}
return(value)
}
4. Only sections give new slides //slide_only
4.1. A subsection
print(value)
## [1] 19
print(my_sum(1:3))
## [1] 6
Some inline code: Object value
has value 19.