generic: generic function

View source: R/generic.R

genericR Documentation

generic function

Description

A function to generate roxygen templates for generic funtions and associated methods.

Usage

generic(gen, methods = NULL, sp = 3, oname = "obj")

Arguments

gen

character string giving the name of an S3 generic.

methods

character vector: a list of methods for which to provide templates

sp

the amont of space to put in between functions

oname

name of the generic object

Value

roxygen text printed to the console.


miscFuncs documentation built on Nov. 2, 2023, 5:21 p.m.

Related to generic in miscFuncs...