install.packages("saros")
See basic computer installation of R, etc
Then open RStudio and install the package {saros}
install.packages("saros")
execute:
cache: true # Placed under execute which you already have.
#| fig-height: 4
Note
- Chunk / code cell
- A bit of R code, defined as anything between
``{r}
and```
. It may have special settings, indicated by#|
(called hash pipe), at the top. If you do not want to run the code temporarily (for example, if you are unsure whether it should be included), you can comment out the code itself (then keep the settings), or delete it completely, and rather retrieve it from the original if desired.- Render/compile
- Runs all the chunks and assembles the document for e.g. an HTML page, PDF or DOCX. Can also be called compile in Norwegian.
- YAML header
- YAML is a way of writing settings for a document (potentially also for an entire project) that is both human and computer readable. Will never appear after compilation.
- Quarto/QMD
- Quarto is the technology that assembles R code, plain text, with YAML settings, etc. QMD is the file name for such a document.