Description Usage Arguments Details Code Chunks Warning Author(s) References See Also Examples
Uses http://johnmacfarlane.net/pandoc/ to convert md to HTML5 DZSlides slides or slidy and provides minor modifications (e.g., embedded youtube and hanging indent text).
1 2 3 |
in.file |
A character vector of the md file. |
out.file |
A character vector of the outfile. If |
type |
A character string of the desired slide type; either
c( |
ref.page |
The title of the reference page (adds hanging indent and
reduces font size). If |
refs.cex |
The font size to make the references. |
path |
The path to where the documents reside/should be created.
Default is the PRESENTATION directory. This conveniently allows for non
paths to be supplied to |
hi.cex |
The font size to make the hanging indent coded text if |
The user must have Pandoc installed and on their path. Pandoc can
be installed from:
http://johnmacfarlane.net/pandoc/installing.html
The following convenience code chunks are implemented:
hi - Wrapping text with this code chunk will result in
hanging indentation. Use hi.cex
to control the font size of the text.
yt - Wrap a youtube url or tag to embed a youtube video
Code chunks use the following form: [[[text]]]=code.tag (e.g., [[[cokNUTGtoM4]]]=yt embeds a youtube video. Currently this is a convenience feature that may have unexpected results and may need additional tweaking within the html output. When using embedded youtube, slide titles and text are ignored but may effect the spacing of the player. User additions are welcomed.
reports based code chunks are for convenience. For more control many HTML tags work with Rmarkdown. The output code can also be manipulated for finer control.
html5 is deprecated and will be removed from reports in a version subsequent to version 0.2.0. It is recomended for the user to become familiar with the slidify approach to html5 presentations as this will be the framework used by the reports package.
Ananda Mahto & Tyler Rinker <tyler.rinker@gmail.com>
http://stackoverflow.com/a/14971683/1000343
1 2 3 4 5 | ## Not run:
#Run after running knitr on an Rmd file
html5() #assumes location of html file out of the box
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.