tests/testthat/bad_missing/R/func.R

my_func <- function(x, y) {
  if (missing(x)) x <- 1
  x + y
}

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.