Ryan Zomorrodi
  • CV
  • Projects

sasquatch

Use SAS, R, and Quarto together

R
SAS
Python
reticulate
SASPy
Author

Ryan Zomorrodi

Published

November 16, 2024

Docs Source rOpenSci Peer Review

I have had to do a fair number of assignments in SAS, and whenever I did I missed the ability to simply include all my code and my comments in a single reproducable rmarkdown/quarto document. When I first came across this presentation by Johann Laurent, I became excited. BaselR had introduced a package, configSAS that allowed me to use SAS with all the nicities that come with quarto!

When I set configSAS up, I became a little disappointed. There was no syntax highlighting, the SAS output’s CSS caused weird styling behavior throughout the rest of the quarto document, and I couldn’t see any SAS output unless I rendered the entire quarto document over again. Still, I thought this was better than nothing. I continued to use configSAS for almost a year until I decided there had to be a better way. That’s what sasquatch aims to be.

sasquatch gives you the ability to work with SAS interactively just as you would R or Python, but within your R IDE of choice. And it allows you render beautiful quarto documents with syntax highlighting. You can even send tables between R and SAS to do your analysis in whatever language is easiest!

Update: I was invited to give a presentation on the origin and inner workings of sasquatch at the May 29th, 2025 SAS Open Source Community of Practice. You can see my presentation here.

© 2024 Ryan Zomorrodi

  • View source
  • Report an issue