tests/testthat/testS3/R/uni.R

#' Generic test for multiple methods
#'
#' @param x,y A parameter
#' @export
uni <- function(x, y) {
  UseMethod("uni")
}

#' Test default
#'
#' @param x,y A parameter
#' @export
uni.default <- function(x, y) {
  x
}

#' Test data frame
#'
#' @param x,y A parameter
#' @export
uni.data.frame <- function(x, y) {
  x
}

#' @export
uni.character <- function(x, y) {
  x
}

Try the doclisting package in your browser

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

doclisting documentation built on April 15, 2026, 5:07 p.m.