# Load libraries
library(knitrtools)

# Define Knitr defaults
knitr::opts_chunk$set(echo=FALSE, cache=TRUE, warning=FALSE, message=FALSE,
                      dpi=150, fig.width=7.5, fig.height=6.5, fig.align='center', 
                      dev='pdf')
knitr::opts_knit$set(root.dir=".") # Change root dir here

# Define other defaults
#pander::panderOptions('table.split.table', Inf)
# Set path to Excel workbook with author information to use
# with `format.authors`
# TODO: could also define a custom format to do this with authors from the preamble
author.wb <- NULL
if (!is.null(author.wb)) {
    authors <- format.authors(author.wb, affil.refs.format.args=list(affil.wrap=markup.ss))
    print(authors$author.str)
    print(authors$affil.str)
}
parameters = read_delim(

' Parameter         | Value     | Units
#-------------------|-----------|--------
 x                  | 1         | mm
',

delim='|', trim_ws=TRUE, comment='#')

Abstract

Methods

Results

Discussion

References

# For debugging: move this around to figure out
# where script is breaking
knitr::knit_exit()


jdidion/knitrtools documentation built on May 18, 2019, 11:30 p.m.