R/onAttach.R

Defines functions .onAttach

.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"(\  \ _ _ _   | |_ _| |  | |\__/| |  | |_ _| |  | |_ _| |   _ _ _| |  | |    | |_   | |  | |_ _| |  | |   | |  | |_ _| \_   | |)",
		r"( \_ _ _ _ /  |_ _ _ _|  |_|    |_|  |  _ _ _|  |_ _ _ _|  /_ _ _ _|  |_|    |_ _\  |_|  |_ _ _ _|  |_|   |_|  \_ _ _ _ _/  |_|)",
		r"(                                    | |)",
		r"(                                    |_|)",
	sep="\n")
	packageStartupMessage(msg)
}

Try the Compositional package in your browser

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

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.