Update SAS Code Execution and Rendering#563
Merged
statasaurus merged 16 commits intoPSIAIMS:mainfrom Apr 1, 2026
Merged
Conversation
…til change can be implemented upstream)
…walshe/CAMIS into update-sas-qmd-execution
Contributor
|
Amazing thank you! I will have a look at this |
Contributor
|
@yannickvandendijck and I will pull this in next week |
statasaurus
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the SAS execution engine options in quarto docs to generally be:
Rather than using
{sas}or{r}ordefault. I've also therefore removed the globaleval: falseand project localeval: truefor all R blocks. I've also added a syntax highlighting definition file for SAS, which means that Quarto/Pandoc correctly recognise it as a language and add code backgrounds and syntax highlighting, e.g.Renders now with highlighted steps, keywords, numbers, strings, comments, etc.

As part of the change I've also re-rendered the whole project to render with SAS syntax highlighting and check that everything is executing which should be. Unfortunately that also means that this is a large PR, but couldn't think of a good way to break up the changes sensibly.
I'm going to try to get the SAS syntax highlighting merged upstream so that any quarto project using SAS will get it by default, but that may take a while to trickle through (will need new versions of Kate, skylighting, pandoc, and quarto to be released!)
Other small changes:
Fixes #559