Now passing checks

This commit is contained in:
Rob J Hyndman 2018-11-22 08:30:57 +11:00
parent 57a04011a4
commit b2632a6377
3 changed files with 9 additions and 7 deletions

View File

@ -18,4 +18,4 @@ Imports: rmarkdown, knitr
VignetteBuilder: knitr
License: GPL (>= 2)
Encoding: UTF-8
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1

View File

@ -21,6 +21,7 @@
##' @param dev A character variable defaulting to \dQuote{pdf}.
##' @param df_print A character variable defaulting to \dQuote{default}.
##' @param fonttheme A character variable defaulting to \dQuote{default}.
##' @param colortheme For the \sQuote{Monash} theme only. A character variable defaulting to \dQuote{monashwhite}.
##' @param highlight A character variable defaulting to \dQuote{tango}.
##' @param keep_tex A logical variable defaulting to \code{FALSE}.
##' @param latex_engine A character variable defaulting to \dQuote{xelatex}.
@ -168,8 +169,7 @@ monash <- function(toc = FALSE,
citation_package = c("none", "natbib", "biblatex"),
includes = NULL,
md_extensions = NULL,
pandoc_args = NULL,
...) {
pandoc_args = NULL) {
fcolortheme <- paste0("beamercolortheme",colortheme,".sty")
for (f in c("beamerfontthememonash.sty",fcolortheme,

View File

@ -26,10 +26,10 @@ iqss(toc = FALSE, slide_level = 3, incremental = FALSE,
monash(toc = FALSE, slide_level = 2, incremental = FALSE,
fig_width = 8, fig_height = 5, fig_crop = TRUE,
fig_caption = TRUE, dev = "pdf", df_print = "default",
fonttheme = "default", highlight = "tango", keep_tex = FALSE,
latex_engine = "pdflatex", citation_package = c("none", "natbib",
"biblatex"), includes = NULL, md_extensions = NULL,
pandoc_args = NULL)
fonttheme = "default", colortheme = "monashwhite",
highlight = "tango", keep_tex = FALSE, latex_engine = "pdflatex",
citation_package = c("none", "natbib", "biblatex"), includes = NULL,
md_extensions = NULL, pandoc_args = NULL)
presento(toc = FALSE, slide_level = 2, incremental = FALSE,
fig_width = 10, fig_height = 7, fig_crop = TRUE,
@ -75,6 +75,8 @@ presento(toc = FALSE, slide_level = 2, incremental = FALSE,
\item{md_extensions}{An optional character variable defaulting to \code{NULL}.}
\item{pandoc_args}{An optional character variable defaulting to \code{NULL}.}
\item{colortheme}{For the \sQuote{Monash} theme only. A character variable defaulting to \dQuote{monashwhite}.}
}
\value{
RMarkdown content processed is returned for use by the