merely-useful / r-rse

ARCHIVED: Activity moved to rostools organization.
Other
11 stars 5 forks source link

Include solutions to exercises as code chunks below exercise #12

Closed lwjohnst86 closed 1 year ago

lwjohnst86 commented 4 years ago

Then I can make use of creating an xml structure of the Rmd file and extract each solution into own file that way (see https://ropensci.org/technotes/2018/09/05/commonmark/)

lwjohnst86 commented 4 years ago

Did this with https://gitlab.com/rostools/r-cubed/-/blob/master/R/extract-solutions.R can use that.

lwjohnst86 commented 3 years ago

This seems to be a better way: https://bookdown.org/yihui/rmarkdown-cookbook/code-appendix.html

lwjohnst86 commented 3 years ago

Or as custom blocks: https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html