Skip to content
Prev 383194 / 398502 Next

R Markdown & chunk extraction in R

And please note that knitr::knit_code$get() only works (i.e. returns a
named list of code chunks) inside a knitr document when the document
_is being knitted_. It doesn't work outside the document. Ideally, you
should use the document parser of knitr, but it is not exported.

Regards,
Yihui
--
https://yihui.org
On Wed, Apr 8, 2020 at 2:54 AM Ashim Kapoor <ashimkapoor at gmail.com> wrote: