R/zzz.R

Defines functions .onAttach

tetRysSound <- new.env()

.onAttach <- function(libname, pkgname)
{
  Ver <- as.character(packageVersion("tetRys")[1])
  Msg <- paste("This is tetRys, version ", Ver, ". A game inspired by Tetris.\nType 'tetRys()' to play a game of tetRys.", sep = "")

  packageStartupMessage(Msg)

  tetRysSound$Path <- system.file("extdata", package = pkgname)
}

Try the tetRys package in your browser

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

tetRys documentation built on Sept. 11, 2024, 9:35 p.m.