a | b/R/zzz.R | ||
---|---|---|---|
1 | .onAttach <- function(libname, pkgname) { |
||
2 | # Display ASCII art |
||
3 | ascii_art_path <- system.file("extdata", "ascii_art.txt", package = "TransProR") |
||
4 | if (file.exists(ascii_art_path)) { |
||
5 | ascii_art_lines <- readLines(ascii_art_path) |
||
6 | ascii_art <- paste(ascii_art_lines, collapse = "\n") |
||
7 | packageStartupMessage(ascii_art) |
||
8 | } else { |
||
9 | packageStartupMessage("Welcome to TransProR!") |
||
10 | } |
||
11 | } |
||
12 | |||
13 |