### My Template for an R Markdown Document for VI/HHRA Data Assessments
- `setup`: Options that you want to define globally. For example,
- `echo = FALSE`: I don’t want any code printed by setting `echo = FALSE`.
- `fig.align = "center"` Align figures in the center
- `fig.width = 5` & `fig.height = 8`. Set the width of 5 and height to 8 inches.
- `dev = "png"`. Save the images as PNG
- `cache = TRUE`. Save the output results of all my chunks so that they don’t need to be run again.
- `library`: Library calls. Make it clear what is needed to run this document.
- You can also look at Miles McBain’s [`packup`](https://github.com/milesMcBain/packup) package to help move these library calls to the top of a document.
- `functions`: Put any functions that you write in the process of writing your document.
- `data` : Load and tidy any data you are going to be using in the document.
- `content` : Include the content of the R Markdown document (narrative, code chunks, results including tables, figures, links, parameters, displayed code, etc.).
- `source` : Include links to data, code and output files.
Template inspired by [R Markdown Hygiene Recommendations | RMarkdown for Scientists (njtierney.com)](https://rmd4sci.njtierney.com/using-rmarkdown.html#nicks-rmarkdown-hygiene-recommendations)
Use different [[R Markdown Code Chunk Options]] to customize behabior of code chunks in R Markdown.
Use fig.alt to assign alt text to a figure:
> {r plot-viz, fig.alt = "Add alternative text used when figure image is highlighted."}
***
2021 cloudedknowledge.net
### My Template for an R Markdown Document for VI/HHRA Data Assessments
- `setup`: Options that you want to define globally. For example,
- `echo = FALSE`: I don’t want any code printed by setting `echo = FALSE`.
- `fig.align = "center"` Align figures in the center
- `fig.width = 5` & `fig.height = 8`. Set the width of 5 and height to 8 inches.
- `dev = "png"`. Save the images as PNG
- `cache = TRUE`. Save the output results of all my chunks so that they don’t need to be run again.
- `library`: Library calls. Make it clear what is needed to run this document.
- You can also look at Miles McBain’s [`packup`](https://github.com/milesMcBain/packup) package to help move these library calls to the top of a document.
- `functions`: Put any functions that you write in the process of writing your document.
- `data` : Load and tidy any data you are going to be using in the document.
- `content` : Include the content of the R Markdown document (narrative, code chunks, results including tables, figures, links, parameters, displayed code, etc.).
- `source` : Include links to data, code and output files.
Template inspired by [R Markdown Hygiene Recommendations | RMarkdown for Scientists (njtierney.com)](https://rmd4sci.njtierney.com/using-rmarkdown.html#nicks-rmarkdown-hygiene-recommendations)
[[Code Chunk Options
Code Chunk Options
Use fig.alt to assign alt text to a figure:
> {r plot-viz, fig.alt = "Add alternative text used when figure image is highlighted."}
***
2021 cloudedknowledge.net