<- rnorm(
vector_random_numbers n = 12, mean = 5, sd = 2)
vector_random_numbers
[1] 7.067605 5.051568 5.275068 3.109509 4.201219 6.572544 1.523327 5.042656
[9] 6.651550 5.984137 5.302610 2.024021
In the (invisible) YAML header we set the default value for the chunk option echo
to FALSE
, meaning that code is hidden by default.
Also check out the header, in which we explicitly set title
, date
, and author
- the result of this can be seen in the rendered document. To comply with the respective tasks we added the specifications toc: true
and toc-location: body
to html
to add the table of contents at the beginning, and theme: darkly
to use this theme. As you could expect, number-sections: true
ensures section headings are numbered. To the pdf
call we add the TOC related comments and `number-sections: true´.
Again some text. Here is the first chunk. The code is shown in the rendered document because we set the chunk option echo: true
, and so is the output produced by the code because the chunk option include
is set the TRUE
by default:
<- rnorm(
vector_random_numbers n = 12, mean = 5, sd = 2)
vector_random_numbers
[1] 7.067605 5.051568 5.275068 3.109509 4.201219 6.572544 1.523327 5.042656
[9] 6.651550 5.984137 5.302610 2.024021
Here we produce the desired ggplot (the code for which remains hidden because we did not deviate from the default value of echo
, which we set to FALSE
in the setup chunk.)
The document was published using Netlify Drop, as explained in the slides. This is the reason the file is called index.qmd
: Netlify Drop only works if a html
-file called index.html
is included in the uploaded directory.