try(detach("package:SASmarkdown"), silent=TRUE)
library(SASmarkdown)
If you are using the saslog or sashtmllog engines, or if you are allowing SAS semantic errors to appear in your document, you may not want to show the entire log file. To gain some control over what shows up in your document, you can use chunk options.
These options are set up for you when you load the SASmarkdown library.
If we use the engine saslog
```{saslog procmeans2} `r ''` proc means data=sashelp.class(keep=height); run; ```
we don't see ALL of the SAS log file, but we may be showing more information than we really want to present to the reader. ```{saslog procmeans2} proc means data=sashelp.class(keep=height); run;
We can filter the log to suppress processing times by using chunk option `SASproctime=FALSE`. ```{saslog procmeans2, SASproctime=FALSE, results='hide'} `r ''` ``` ```{saslog procmeans2, SASproctime=FALSE, results='hide'}
Other filtering options include no SAS command echo with
SASecho=FALSE
and no SAS NOTES with SASnotes=FALSE
.
```{saslog procmeans2, SASecho=FALSE, results="hide"}
```{saslog procmeans2, SASnotes=FALSE, results="hide"}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.