Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (39 sloc) 1.78 KB
options(rstudio.markdownToHTML = 
  function(inputFile, outputFile) {      
    htmlOptions <- markdownHTMLOptions(defaults=TRUE)
    htmlOptions <- htmlOptions[htmlOptions != "base64_images"]
    markdownToHTML(inputFile, outputFile, stylesheet='custom.css')

Changed Title!

Ian Breckheimer, r format(Sys.time(), "%d %b %Y")

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:

You can also embed plots, for example:


Pretty tables are implemented with the xtable function:

print(xtable(head(iris),caption = "Title of the table"), type = 'latex') ##change type to 'html' for web.

It is also straightforward to include inline citations like this: r citep("10.1890/11-0011.1")

Inline equations are handled like this (LATEX format): $\frac{1}{n} \sum_{i=i}^{n} x_{i}$

You can also create display equations: $$\frac{1}{n} \sum_{i=i}^{n} x_{i}$$

And it is possible to include a bibliography at the end of the document:

Works Cited:

system("pandoc -f markdown+pipe_tables -t latex -o /Users/ian/code/report_template.pdf '/Users/ian/code/'")