Created
September 5, 2013 03:35
-
-
Save lcolladotor/6445771 to your computer and use it in GitHub Desktop.
Basic example of using knitrBootstrap in RStudio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For knitr bootstrap | |
## More info at http://www.rstudio.com/ide/docs/authoring/markdown_custom_rendering | |
options(rstudio.markdownToHTML = | |
function(inputFile, outputFile) { | |
library(knitrBootstrap) | |
knit_bootstrap_md(input=inputFile, output=outputFile, code_style="Brown Paper", chooser=c("boot", "code"), show_code=FALSE) | |
} | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Title | |
======================================================== | |
This is an R Markdown document. Markdown is a simple formatting syntax for authoring web pages (click the **Help** toolbar button for more details on using R Markdown). | |
When you click the **Knit HTML** button a web page will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: | |
```{r} | |
library(knitr) | |
render_html() | |
summary(cars) | |
``` | |
You can also embed plots, for example: | |
```{r fig.width=7, fig.height=6} | |
plot(cars) | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment