in R the equivalent would be roughly (a snippet i ...
# development
a
in R the equivalent would be roughly (a snippet i pulled from somewhere):
Copy code
setMethod('initialize', 'Type', function(.Object, name, ...) {
    .Object <- callNextMethod(.Object, ...)
    .Object@name <- validateTypeNameString(name)
    .Object
})