tests/testthat/testS3/R/self_link.R

#' A generic with a self-linked method
#'
#' @param x A parameter
#' @export
self_link <- function(x) {
  UseMethod("self_link")
}

#' @rdname self_link
#' @export
self_link.default <- function(x) {
  x
}

#' Test data frame
#'
#' @param x A parameter
#' @export
self_link.data.frame <- function(x) {
  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.