Home

Awesome

rsmith

Build Status

rsmith is inspired by metalsmith, which is a static site generator for node with a very simple API, based almost entirely on plugins. rsmith has a functional API, which when combined with magrittr, provides a pretty nice declarative specification:

rsmith("src", "dest") %>%
  use(markdown()) %>%
  use(whisker()) %>%
  build()

Possibly the coolest feature is that it uses Shiny's reactivity to cache interim results. This means that if you use watch() instead of build(), rsmith will watch for changes on disk and will do the minimal amount of work to update the site:

rsmith("src", "dest") %>%
  use(markdown()) %>%
  use(whisker()) %>%
  watch()

Plugins

Main differences

Rsmith adheres to the spirit of metalsmith, but is written in idiomatic R. This means that it: