standardMethods

0th

Percentile

Utility to automatically generate accessor and replacement functions

Creates definitions for accessor and replacement functions of an given class.

Keywords
utilities, programming
Usage
standardMethods(class, writetofile = FALSE, directory)
Arguments
class

the class for which accessor and replacement functions are to be produced, given as a string

writetofile

logical value, indicating wheter output is to be written to a file

directory

if writetofile = TRUE, the output is written to a file in the given directory, the name of the file starting with "classname" and ending with "StandardMethods.txt"

Value

no value is returned

Aliases
  • standardMethods
Examples
# NOT RUN {
setClass("testclass", representation(a = "numeric", b = "character"))
standardMethods("testclass")
# }
Documentation reproduced from package distr, version 2.8.0, License: LGPL-3

Community examples

Looks like there are no examples yet.