tests/testthat/TestPackage/R/foo.R

#' @export
foo1 <- function() {
  1
}

#' @export
foo2 <- function(x) {
  x
}

#' @export
foo3 <- function(x, y) {
  x+y
}

#' @export
foo4 <- function(...) {
  list(...)
}

#' @export
foo5 <- function(x, y, ...) {
  c(x, y, list(...))
}
PRL-PRG/contractR documentation built on Oct. 10, 2022, 8:29 p.m.