Skip to content

Commit

Permalink
add documentation for slidify.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnathv committed Jun 24, 2013
1 parent 4d0b039 commit 56f343c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/slidify.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#' Convert an Rmd document into HTML5
#'
#' @noRd
pagify <- slidify <- function(inputFile, knit_deck = TRUE, return_page = FALSE,
#' @param inputFile path to the Rmd file to slidify
#' @param knit_deck whether the file needs to be run through knit
#' @param return_page should the function return the payload
#' @param save_payload should the payload be saved to the slide directory
slidify <- pagify <- function(inputFile, knit_deck = TRUE, return_page = FALSE,
save_payload = FALSE){
site = ifelse(file.exists('site.yml'), yaml.load_file('site.yml'), list())
page = parse_page(inputFile, knit_deck)
Expand Down
23 changes: 23 additions & 0 deletions man/slidify.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
\name{slidify}
\alias{slidify}
\title{Convert an Rmd document into HTML5}
\usage{
slidify(inputFile, knit_deck = TRUE, return_page = FALSE,
save_payload = FALSE)
}
\arguments{
\item{inputFile}{path to the Rmd file to slidify}

\item{knit_deck}{whether the file needs to be run through
knit}

\item{return_page}{should the function return the
payload}

\item{save_payload}{should the payload be saved to the
slide directory}
}
\description{
Convert an Rmd document into HTML5
}

0 comments on commit 56f343c

Please sign in to comment.