tests/testthat/bad_print/R/print.R

print.myclass <- function(x, ...) {
  cat("myclass object\n")
}

print.another = function(x, ...) {
  cat("another object\n")
}

Try the goodpractice package in your browser

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

goodpractice documentation built on June 5, 2026, 5:06 p.m.