Git Product home page Git Product logo

Comments (5)

Hemken avatar Hemken commented on June 29, 2024

from sasmarkdown.

srvanderplas avatar srvanderplas commented on June 29, 2024

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.

Hemken avatar Hemken commented on June 29, 2024

from sasmarkdown.

srvanderplas avatar srvanderplas commented on June 29, 2024

A chunk option sounds like an excellent way to handle it!

from sasmarkdown.

Hemken avatar Hemken commented on June 29, 2024

For now this remains a SAS option, not a knitr option. See SASmarkdown docs

from sasmarkdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.