inst/examples/pkgDemo/R/tests.R

testy <- function(x, ...) {
  UseMethod("testy")
}

testy.default <- function(x, ..., notused) {
  cat("hello world!\n")
}

testy.factor <- function(x, ..., notused) {
  cat("I like factors. Factors are my favorite!\n")
}

testy.numeric <- function(x, ..., notused) {
  cat("I like a number of things!\n")
}
yihui/Rd2roxygen documentation built on April 16, 2024, 8:26 a.m.