How to run SAS inside an RMarkdown file

2021-01-23

I create a lot of teaching resources using R Markdown. A question arises about how to incorporate SAS code and output into these teaching resources. I had written earlier about SASWeave, and that is one possible solution. There are other solutions as well.

There is a SAS engine that you can call. Details are found in section 15.7 of the R Markdown Cookbook. An interesting alternative is the SASMarkdown package. A couple of nice descriptions of both appear on a blog post by Melinda Higgins and another by Ken.