# set global chunk options lapply(c("knitr", "RWordPress", "xtable", "reports", "knitcitations"), require, character.only = T) opts_chunk$set(cache = TRUE, warning = FALSE, message = FALSE, tidy = FALSE) pressNum_n_dir <- "INSERTwordpress_number/directoryHERE" #e.g., "61803503/wp/" path2figureStorage <- "C:/Users/you/Dropbox/Public/directoryHERE/" #e.g., "C:/Users/trinker/Dropbox/Public/wp/" opts_knit$set(base.url = paste0("http://dl.dropboxusercontent.com/u/", pressNum_n_dir), base.dir = path2figureStorage) bib <- read.bibtex(dir()[tools::file_ext(dir()) == "bib"][1])
Intro/Overview Text Here
x <- "here is a minimal example" print(x)
# eval code
# figures
Remember to see the SEND_IT.R file to send to wordpress
bibliography("html")
r HR2("https://github.com/trinker/reports", "reports")
package
# knitr::purl(".Rmd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.