R/lazy.verbatim.end.R

Defines functions lazy.verbatim.end

Documented in lazy.verbatim.end

#' @describeIn lazy.verbatim.start
#' 

lazy.verbatim.end <- function(){
  #*** retrieve the report format
  reportFormat <- getOption("lazyReportFormat")
  if (!reportFormat %in% c("latex", "html", "markdown")) stop("option(\"lazyReportFormat\") must be either 'latex', 'html', or 'markdown'")
  
  if (reportFormat == "latex") return("\\end{verbatim}")
  
  if (reportFormat == "html") return("</p>")
  
  if (reportFormat == "markdown") return("")
}
nutterb/lazyWeave documentation built on May 24, 2019, 10:52 a.m.