Code Monkey home page Code Monkey logo

rmdcss's Introduction

CSS templates for R Markdown documents

These templates were lifted from John Otander 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.

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 package

If 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.

rmdcss's People

Contributors

nwstephens avatar

Watchers

James Cloos avatar

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.