R/zzz.R

Defines functions .onLoad

#' cvreg-package
#'
#' @description Cross Validation, Robust Regression, and Data Visualization Tools
#'
#' @docType package
#' @author Brandon Vaughan
#' @import Rcpp RcppArmadillo
#' @importFrom Rcpp evalCpp
#' @useDynLib cvreg
#' @name cvreg
NULL

.onUnload <- function (libpath) {
  library.dynam.unload("cvreg", libpath)
}


.onLoad <- function(libname, pkgname) {
  suppressPackageStartupMessages(library(ggplot2))
  #palette(c("#0c0c0c", "#EF2A36", "#3DCF31", "#1A71EC", "#40DFFF", "#ED16FB", "#f9d90c", "#9390a5"))
  suppressMessages(ggplot2::theme_set(cvreg:::theme_baseplot()))
  invisible()
}
abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.