R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
  op <- options()
  op.frequency <- list(

    # Render output using rmarkdown
    frequency_render = TRUE,

    # Automatically open external output
    frequency_open_output = FALSE,

    # Sorting options
    frequency_sort_by = "value",
    frequency_sort_descending = FALSE,

    # Table options
    frequency_trim = TRUE,

    # Formatting options

    # Testing options
    frequency_output_viewer = TRUE,
    frequency_testthat_debug = FALSE

  )
  toset <- !(names(op.frequency) %in% names(op))
  if(any(toset)) options(op.frequency[toset])

  invisible()
}

Try the frequency package in your browser

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

frequency documentation built on Jan. 13, 2021, 4:35 a.m.