Learn R Programming

knitrBootstrap (version 0.9.0)

knit_bootstrap: knit a Rmd file and wrap it in bootstrap styles

Description

This function includes the knitrBootstrap HTML headers to wrap the knitr output in bootstrap styled HTML.

Usage

knit_bootstrap(input, output = NULL, boot_style = NULL,
    code_style = NULL, chooser = NULL, thumbsize = 3,
    show_code = FALSE, show_output = TRUE,
    show_figure = TRUE,
    markdown_options = c("mathjax", "base64_images", "use_xhtml"),
    ..., envir = parent.frame(), text = NULL,
    quiet = FALSE, encoding = getOption("encoding"),
    graphics = getOption("menu.graphics"))

Arguments

See Also

knit_bootstrap_md knit, markdownToHTML

Examples

Run this code
writeLines(c("# hello markdown", '```{r hello-random, echo=TRUE}', 'rnorm(5)', '```'), 'test.Rmd')
knit_bootstrap('test.Rmd', boot_style='Amelia', code_style='Dark', chooser=c('boot','code'))
if(interactive()) browseURL('test.html')

Run the code above in your browser using DataLab