back to notes

read_chunk & ref.label='chunk1' & readLines

seems like three ways to handle this

- read_chunk('foo-bar.R')

- ref.label="chunk1"

- readLines

https://yihui.name/knitr/demo/reference/

https://yihui.name/knitr/demo/externalization/

https://bookdown.org/yihui/rmarkdown/rich-text-format-document.html#other-features-3

http://zevross.com/blog/2014/07/09/making-use-of-external-r-code-in-knitr-and-r-markdown/



last updated august 2018