Convert a Swirl Module into Slidify Markdown
R
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
inst/templates
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
README.md
swirlify.Rproj

README.md

Swirlify

Swirl is an R package, that allows interactive statistics and R lessons to be delivered directly from the R console. Swirlify complements Swirl by allowing an author to convert a course module into interactive slides that can then be deployed over the web, or as an interactive Shiny application.

See a demo in action!

Installation

You can install swirlify from github using devtools

library(devtools)
install_github("swirlify", "slidify")

Usage

The swirl2slidify function allows a swirl course module to be converted into a slidify compatible R Markdown file.

The first step is to convert the module into slidify markdown

library(swirlify)
course = system.file('Courses', 'Data_Analysis', package = 'swirl')
module = 'Module1.Rda'
deck = swirl2slidify(course, module)

The second step is to create a presentation folder for the slides, replace index.Rmd with the contents of deck, and use runDeck to open the course module as a shiny application that allows interactivity.

library(slidify)
author('module1')
cat(deck, file = "index.Rmd")
runDeck()

Note that you will need to latest dev branch of slidify and slidifyLibraries installed for these features to work.

License

MIT License