https://github.com/trinker/rmarkdown_variable_doc_demo
https://github.com/trinker/rmarkdown_variable_doc_demo
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/trinker/rmarkdown_variable_doc_demo
- Owner: trinker
- Created: 2014-11-18T14:38:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T16:15:44.000Z (over 11 years ago)
- Last Synced: 2025-02-28T21:57:06.610Z (over 1 year ago)
- Language: R
- Size: 116 KB
- Stars: 7
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rmarkdown: Alter Action Depending on Document
===========================
This repo is designed to accompany [this blog post](http://trinkerrstuff.wordpress.com/2014/11/18/rmarkdown-alter-action-depending-on-document/) that explains how to accomplish this wish:
> "I wish I could do X for document type A and Y for document type B"
This repo contains:
- 2 Rmd documents
- **simple.Rmd**: A simple MWE
- **extended.Rmd**: An extended Example
- **preambleish.sty** to accompany *extended.Rmd*
- **render.R** to render .html, .pdf, and .docs documents from the .Rmd files
You can fork this repo, install locally, and then run:
```r
rmarkdown::render("simple.Rmd", "all")
rmarkdown::render("extended.Rmd", "all")
```
...to render the documents.