Statamarkdown
Statamarkdown copied to clipboard
Functions to write Stata documentation with knitr
Is it possible to use a chunk option to plot specific lines of stata code following: [https://www.ssc.wisc.edu/~hemken/Stataworkshops/Statamarkdown/including-stata-graphs.html#saving-a-stata-graph](from here) It would be nice to simplify the process of exporting graphs and...
Take the following example, adapted from [the Statamarkdown handbook](https://www.ssc.wisc.edu/~hemken/Stataworkshops/Statamarkdown/linking-code-blocks.html): ```` --- title: "R Notebook" output: html_document: df_print: paged --- ```{r, include=FALSE} library(Statamarkdown) ``` A first code block: ```{stata first-Stata, collectcode=TRUE}...
I wonder if there is any value in making a `knitr::purl`-style function that outputs a .do file with just the Stata code in it? I've done this for my own...