Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwstephens/rmdcss
CSS templates for R Markdown documents
https://github.com/nwstephens/rmdcss
Last synced: 17 days ago
JSON representation
CSS templates for R Markdown documents
- Host: GitHub
- URL: https://github.com/nwstephens/rmdcss
- Owner: nwstephens
- Created: 2017-11-15T04:32:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T05:15:07.000Z (almost 7 years ago)
- Last Synced: 2024-07-31T19:16:59.156Z (3 months ago)
- Language: CSS
- Homepage:
- Size: 7.81 KB
- Stars: 31
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSS templates for R Markdown documents
These templates were lifted from [John Otander](http://markdowncss.github.io/) and wrapped into an R package.
* Air
* Modest
* Retro
* Splendor### Install
Install the package from Github using devtools:
```
devtools::install_github("nwstephens/rmdcss")
```### Using
Open an R Markdown skeleton document in the RStudio IDE by selecting `File > New File > R Markdown... > From Template`. This will load a skeleton document with the appropriate YAML header:
```
---
title: "Untitled"
output: rmdcss::html_air
---
```### Understanding document templates
You can easily add your own document templates by the instructions at the [R Markdown website](http://rmarkdown.rstudio.com/developer_document_templates.html).
If you want to use a CSS template that is not included in this package you can choose to either:
* Modify this package to include your CSS file
* Refer to the CSS file outside of this packageIf you want to use a CSS file outside of this package, you should store the CSS file in your document directory and refer to it in the YAML header:
```
---
title: "Habits"
output:
html_document:
theme: null
highlight: null
css: styles.css
---
```For more details on how to customize HTML output with R Markdown, please refer to the [R Markdown website](http://rmarkdown.rstudio.com/html_document_format.html#custom_css).