R/html.img.R

#' @examples \dontrun{
#' .html.img("index.html", class="myid", src="my.png", width=400)
#' }
.html.img <- function(file, ...) {
  fq <- getOption("useFancyQuotes")
  options(useFancyQuotes=FALSE)
  att <- unlist(list(...))
  out <- '<img'
  out <- c(out, paste(names(att), dQuote(att), sep="="))
  out <- c(out, '/>')
  out <- paste(out, collapse=" ")
  cat(out, "\n", file=file, append=TRUE)
  options(useFancyQuotes=fq)
}

Try the mcmcplots package in your browser

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

mcmcplots documentation built on May 2, 2019, 1:29 p.m.