inst/build.R

library(knitr)
args <- commandArgs(TRUE)
input <- args[1]
output <- args[2]
figPath <- paste0("figs/", sub(".Rmd$", "", basename(input)), "/")
opts_chunk$set(fig.path = figPath)
# opts_chunk$set(fig.cap = "center")
opts_chunk$set(tidy = FALSE)
# opts_chunk$set(out.width = "\\textwidth")
opts_chunk$set(fig.width=7)
opts_chunk$set(fig.height=4)
knit(input = args[1], output = args[2])
wahani/wahaniMiscs documentation built on May 3, 2019, 8:10 p.m.