SASmarkdown-package {SASmarkdown} | R Documentation |
Settings and functions to extend the knitr SAS engine.
Description
Using the "sas" language engine provided in knitr
has a number of limitations.
Each SAS code chunk is run as a separate batch file, and only the source
code and the listing output are returned to the document being knit.
The functions in this package set up additional variations on the SAS language engine, enabling ODS HTML, HTML5, and LaTeX output to be returned to the document, as well as enabling SAS log output to be returned. These language engines are automatically created when the package is loaded.
When used with chunk option error=TRUE
, the user can see some
SAS errors automatically included in their document.
Another function here sets up a chunk hook, that repeats selected
code chunks
at the beginning of later code chunks. This allows
the code in one chunk to use the results of a previous chunk. See
sas_collectcode
.
Another function sets up source hooks, allowing the user to suppress
parts of the SAS log. See saslog_hookset
.
The function spinsas
processes SAS command files that
include markup within SAS comments. See spinsas
.
Author(s)
Doug Hemken
References
More documentation and examples: http://www.ssc.wisc.edu/~hemken/SASworkshops/sas.html#writing-sas-documentation
See Also
The package that this extends: knitr-package
.