tests/pkgStartupMessage.R

library("R.methodsS3")

message("TESTING: pkgStartupMessage()...")

msg <- "Hello world!"
pkgStartupMessage(msg)

for (quietly in c(NA, FALSE, TRUE)) {
  msg <- sprintf("Hello world! (quietly=%s)", quietly)
  pkgStartupMessage(msg, quietly=quietly)
}

message("TESTING: pkgStartupMessage()...DONE")

Try the R.methodsS3 package in your browser

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

R.methodsS3 documentation built on June 14, 2022, 1:06 a.m.