How to run SAS inside an RMarkdown file

*Blog post
2021
R software
Published

January 23, 2021

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.

An earlier version of this page was published on new.pmean.com.