R/zzz.R

Defines functions .onAttach .onLoad

.onLoad <- function(libname = find.package("santaR"), pkgname = "santaR"){

	# CRAN Note avoidance
	if(getRversion() >= "2.15.1") {
    utils::globalVariables(
			# data.frame column names used in ggplot (cannot use aes_string due to transformations to the column in aes())
			c("x","y","count","percent","colFill","value","PC")
		)
  invisible()
	}
}

.onAttach <- function(libname, pkgname) {
  packageStartupMessage(
    paste("\nThis is santaR version", utils::packageVersion("santaR"), "\n"))
}

Try the santaR package in your browser

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

santaR documentation built on May 24, 2022, 1:06 a.m.