Skip to content

Instantly share code, notes, and snippets.

@monkeycycle
Created May 16, 2018 17:09
Show Gist options
  • Save monkeycycle/395f879e257f498e1f04f2814e36b0a3 to your computer and use it in GitHub Desktop.
Save monkeycycle/395f879e257f498e1f04f2814e36b0a3 to your computer and use it in GitHub Desktop.
Print markdown within r notebook code chunks
# Needs `, results='asis'` and two spaces before the trailing newline
```{r occupations_by_vismin.R, echo=TRUE, message=FALSE, warning=FALSE, results='asis'}
for(thing in list_of_things){
cat("\n###", thing, "\n")
cat(" \n")
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment