blogdown-shortcodes/downloads/example.Rmd

13 lines
329 B
Plaintext

---
yaml: here
---
```{r, include=FALSE}
source("../../static/download.R", local = knitr::knit_global())
```
# This example isn't perfect
You need to make sure the source-link points to where you have the R file located. This one is in the main static-page, but depends on the Rmd file being in /content/blog/
`r download(1)`