tests/empty.R

library(litedown)
f = tempfile()
if (file.create(f)) {
  # create full HTML
  opts = options(litedown.html.template = TRUE)
  mark(f)
  options(opts)

  # create fragment
  mark(f)
  unlink(f)
}

mark(character(0))
mark('')

Try the litedown package in your browser

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

litedown documentation built on Oct. 17, 2024, 1:06 a.m.