R/onAttach.R

Defines functions .onAttach

#[export special]
.onAttach <- function(lib, pkg) {
	version <- read.dcf(file.path(lib, pkg, "DESCRIPTION"),"Version")
	packageStartupMessage(paste("\n",pkg["name"],": ",version,sep = ""))
	msg <-  paste(
			r"( _ _ _)",
			r"(|  _ _ \)",
			r"(| |   | |   _    _        _ _ _ _    _ _ _ _      _      _    _ _ _ _    _ _ _ _    _ _ _ _      _ )",
			r"(| |   | |  |_|  | |_ _   |   __  |  |  _ _ _\   _| |_   |_|  |  _ _  |  /  _ _  \  /  _ _  \    | |)",
			r"(| |   | |   _   |  _ _\  |  _ _ _|  | |        |_   _|   _   | |   | |  | |   | |  | |   | |    | |)",
			r"(| |_ _| |  | |  | |      |  \_ _    | |_ _ _     | |_   | |  | |_ _| |  | |   | |  | |_ _| \_   | |)",
			r"(|_ _ _ /   |_|  |_|       \_ _ _\   |_ _ _ _/    |_ _\  |_|  |_ _ _ _|  |_|   |_|  \_ _ _ _ _/  |_|)",

	sep="\n")
	packageStartupMessage(msg)
}

Try the Directional package in your browser

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

Directional documentation built on Oct. 30, 2024, 9:15 a.m.