R/zzz.R

Defines functions .onAttach

###############################
####    package options    ####
###############################


#----    -onAttach    ----


.onAttach <- function(libname, pkgname){
  options("pboptions" = list(
    type = if (interactive()) "timer" else "none",
    char = "=",
    txt.width = 50,
    gui.width = 300,
    style = 3,
    initial = 0,
    title = "R progress bar",
    label = "",
    nout = 50L,
    min_time = 0))
  invisible(NULL)
}

#----

Try the PRDA package in your browser

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

PRDA documentation built on Dec. 8, 2020, 5:07 p.m.