Chuck Huber just had a webcast, giving an introduction to ado files. I asked under Q&A what the best method would be to combine ado-files with literate programming. In my case, literate programming is using a separate document to put all supplemental material, including all code. StataCorp seemed to suggest copy and paste, if I understand correctly.
Many in the R community now move away from having separate files with scripts (think separate do-files and ado-files) and include all code in one file, thereby increasing reproducibility for other researchers and avoiding copy and paste (which is error-prone). R users can now use R Markdown or the newer Quarto. If I should develop something similar with Stata and also use ado-files, how would I get the content of an ado-file copied automatically into my summary file (printed as PDF)?
PS. In Quarto, I can load the content of an external file, be it graphics or some text, including a Stata do-file, and have the graphics/text printed in the final document produced by Quarto. Notably, Quarto is less R focused than R Markdown was. If Stata developed an integration with Quarto, that would be great, even for Stata users who combine Stata and Python and don't want to be bothered with R. So if Stata's version(s) of markdown are currently less capable of reading and printing the content of an external file, maybe an official integration of Stata with Quarto could be one way to solve this?
Many in the R community now move away from having separate files with scripts (think separate do-files and ado-files) and include all code in one file, thereby increasing reproducibility for other researchers and avoiding copy and paste (which is error-prone). R users can now use R Markdown or the newer Quarto. If I should develop something similar with Stata and also use ado-files, how would I get the content of an ado-file copied automatically into my summary file (printed as PDF)?
PS. In Quarto, I can load the content of an external file, be it graphics or some text, including a Stata do-file, and have the graphics/text printed in the final document produced by Quarto. Notably, Quarto is less R focused than R Markdown was. If Stata developed an integration with Quarto, that would be great, even for Stata users who combine Stata and Python and don't want to be bothered with R. So if Stata's version(s) of markdown are currently less capable of reading and printing the content of an external file, maybe an official integration of Stata with Quarto could be one way to solve this?
Comment