R/zzz.R

Defines functions .onAttach .onLoad

.onLoad <- function(libname, pkgname) {
  op <- options()
  op.juicedown <- list(
    juicedown.template = pkg_file("xml", "template.html"),
    juicedown.article.css = pkg_file("css", "article.scss"),
    juicedown.div.css = pkg_file("css", "div.scss")
  )
  toset <- !(names(op.juicedown) %in% names(op))
  if (any(toset)) options(op.juicedown[toset])

  invisible()
}

.onAttach <- function(libname, pkgname) {
  # packageStartupMessage("Welcome to juicedown")
}

Try the juicedown package in your browser

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

juicedown documentation built on Sept. 8, 2023, 5:11 p.m.