Appendix B Cheatsheet for the authors
B.2 bookdown
bookdown
specific
https://bookdown.org/yihui/bookdown/
Rmarkdown
guide
https://bookdown.org/yihui/rmarkdown/
Rmarkdown
cookbook
B.3 Free images
Unsplash has a large collection of freely-usable images.
B.4 Figures
To insert figures, we can use knitr::include_graphics()
.
```{r apple-sandwich, fig.cap="An apple and a sandwich", fig.alt=c("An apple", "A sandwich"), fig.show="hold", fig.align="center", out.width="49%", out.height="20%", echo=FALSE}
knitr::include_graphics(
c("https://images.unsplash.com/photo-1613432374366-9283e36f7394?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1470&q=80",
"https://images.unsplash.com/photo-1567234669003-dce7a7a88821?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1470&q=80")
)
```
https://bookdown.org/yihui/bookdown/figures.html