inst/examples/strings/R/label.R

greet <- function(name) {
  if (nchar(name) == 0) return("Hello, stranger!")
  paste0("Hello, ", name, "!")
}

default_label <- function(label) {
  if (label == "") "unknown" else label
}

Try the muttest package in your browser

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

muttest documentation built on May 14, 2026, 5:10 p.m.