R/statgenSTA.R

Defines functions .onLoad

#' @keywords internal
"_PACKAGE"

#' @importFrom xtable xtable
#' @importFrom graphics plot
#' @importFrom rlang .data
#' @import stats
NULL

## CRAN Note avoidance.
if (getRversion() >= "2.15.1") {
  utils::globalVariables("count")
}

statgenDefaultOptions <- list(
  ##palette.colors(palette = "Dark 2")
  statgen.genoColors = c("#1B9E77", "#D95F02", "#7570B3", "#E7298A", "#66A61E",
                         "#E6AB02", "#A6761D", "#666666"),
  ##palette.colors(palette = "Alphabet")
  statgen.trialColors = c("#AA0DFE", "#3283FE", "#85660D", "#782AB6", "#565656",
                          "#1C8356", "#16FF32", "#F7E1A0", "#E2E2E2", "#1CBE4F",
                          "#C4451C", "#DEA0FD", "#FE00FA", "#325A9B", "#FEAF16",
                          "#F8A19F", "#90AD1C", "#F6222E", "#1CFFCE", "#2ED9FF",
                          "#B10DA1", "#C075A6", "#FC1CBF", "#B00068", "#FBE426",
                          "#FA0087")
)

.onLoad <- function(libname, pkgname) {
  op <- options()
  toset <- !(names(statgenDefaultOptions) %in% names(op))
  if (any(toset)) {
    options(statgenDefaultOptions[toset])
  }

  return(invisible(NULL))
}

Try the statgenSTA package in your browser

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

statgenSTA documentation built on Oct. 14, 2024, 9:10 a.m.