tests/testthat/good_tidyverse/R/good_style.R

good_func <- function(x, y) {
  if (is.na(x) || y > 0) {
    x
  } else {
    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.