Comments (5)
from sasmarkdown.
Yep, that did it, thanks!
It might be worth reconsidering the "minimal" option if only so that the default behavior is the same in SAS and SASmarkdown.
For anyone else who comes across this and doesn't know exactly what a style declaration would look like (because I didn't, not being a particularly experienced SAS user), this worked for me:
indoc <- '
---
title: reprex
output: html_document
---
```{r load-sas-libraries, echo =T, message = F, warning = F}
library(SASmarkdown)
sas_enginesetup()
```
```{r echo=T}
writeLines(c(
"ODS HTML style=htmlblue;",
"PROC SGPLOT data=sashelp.snacks;",
"SCATTER x = date y = QtySold /",
" markerattrs=(size=8pt symbol=circlefilled)",
" group = product; /* maps to point color by default */",
"RUN;",
"QUIT;"
), con = "reprex.sas")
```
```{r as-in-book, engine="sashtml", engine.path = "sas"}
%include "reprex.sas";
```
```{r}
system("sas reprex.sas")
```
![](SGPlot.png)
'
knitr::knit(text=indoc, output="test.md")
rmarkdown::render("test.md")
from sasmarkdown.
from sasmarkdown.
A chunk option sounds like an excellent way to handle it!
from sasmarkdown.
For now this remains a SAS option, not a knitr option. See SASmarkdown docs
from sasmarkdown.
Related Issues (20)
- SASmarkdown fails when there is a syntax error in SAS code HOT 2
- Can SASmarkdown use SAS chinese version? HOT 3
- Can SAShtml work with chinese version SAS? HOT 4
- Chunk option SASnotes=FALSE removes only the first line of notes HOT 4
- Chunk option SASnote / SASproctime HOT 1
- Sas execution stuck, command line seems to be sent twice HOT 9
- Use of many code chunks HOT 7
- Possible to use a SAS executable on a different machine? HOT 8
- Provide server credentials to SAS engine HOT 1
- Object out.log not found HOT 9
- SASmarkdown fails to use collectcode HOT 7
- `find_sas()` only search the default path on windows HOT 3
- Get and send data to R environment? HOT 5
- "error in system2" HOT 26
- 8.5 chapter - possible typo HOT 1
- collectcode doesn't work with sashtml5 engine HOT 5
- Adapt collectcode option for non-standard location of autoexec files HOT 4
- User setting for chunk options: SASecho, SASproctime and SASnotes HOT 7
- Can't get saspdf engine to run in R Markdown HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sasmarkdown.