tests/testthat/test_packages/r_fuzzy/R/foo.R

a <- function(x) {
  warning("I warned you!!")
  x+1
}

b <- function(x) {
  stop("I really wish you'd reconsider")
}

c <- function(x) {
  cat(sprintf(
    ngettext(length(x), "SOMEWHAT EPIC FAIL", "MAJORLY EPIC FAIL")
  ))
  # coverage test: only cat() call in this package, and it gets skipped because of file=
  cat("hello", file = tempfile())
}

Try the potools package in your browser

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

potools documentation built on Nov. 2, 2023, 5:20 p.m.