R/0_S7_init.R

# 2026- EDG rtemis.org

#' String representation
#'
#' @param x Object to represent as a string.
#' @param ... Additional arguments passed to methods.
#'
#' @return Character string representation of the object.
#'
#' @author EDG
#' @export
#'
#' @examples
#' S7::method(repr, S7::class_character) <- function(x, ...) {
#'   paste0("<chr> \"", x, "\"")
#' }
#' cat(repr("hello"))
repr <- new_generic("repr", "x")

Try the rtemis.core package in your browser

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

rtemis.core documentation built on April 22, 2026, 1:11 a.m.