R/lazy.verbatim.end.R

#' @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("")
}

Try the lazyWeave package in your browser

Any scripts or data that you put into this service are public.

lazyWeave documentation built on May 2, 2019, 12:35 p.m.