Learn R Programming

⚠️There's a newer version (1.26.0) of this package.Take me there.

R.oo (version 1.1.0)

R object-oriented programming with or without references

Description

Methods and classes for object-oriented programming in R with or without references. Large effort has been made on making definition of methods as simple as possible with a minimum of maintainance for package developers. For example, generic functions are created automatically, if missing, and name conflict are automatically solved, if possible. The method setMethodS3() is a good start for those who in the future want to migrate to S4. The package has been developed since 2001 and is now considered very stable.

Copy Link

Version

Install

install.packages('R.oo')

Monthly Downloads

172,478

Version

1.1.0

License

LGPL version 2.1 or newer (the releases)

Maintainer

Henrik Bengtsson

Last Published

January 24th, 2024

Functions in R.oo (1.1.0)

declaration.Rdoc

Gets the class declaration
getContents.Package

Gets the contents of this package
getDevelUrl.Package

Gets the URL(s) from where the developers version of this package can be installed
getFields.Class

Returns the field names of a class
showHowToCite.Package

Show the HOWTOCITE file of this package
getKeywords.Rdoc

Gets the keywords defined in R with descriptions
createName.Rdoc

Creates a class-method name
extend.BasicObject

Extends another class
attach.Object

Attaches an Object to the Rsearch path
argsToString.Rdoc

Gets the arguments signature of a function
Non-documented objects

Non-documented objects
as.character.RdocException

Gets a character string representing of the RdocException
getKnownSubclasses.Class

Gets all subclasses that are currently loaded
getClassS4Usage.Rdoc

Gets the usage of a S4 class
clone.Object

Clones an Object
isPublic.Class

Checks if a class is defined public or not
getRdTitle.Rdoc

Extracts the title string of a Rd file
getBundle.Package

Gets the Bundle that this package might belong to
getExamplePath.Package

Gets the path to the example (R-ex/) directory of this package
forName.Class

Gets a Class object by a name of a class
getEnvironment.Package

Gets the environment of a loaded package
Class

The Class class describes an Object class
R.KEYWORDS

Reserved words in R not to be used for object names
getVersion.Package

Gets the version of this package
getDataPath.Package

Gets the path to the data (data/) directory of this package
BasicObject

A root class like Object but without references
detach.BasicObject

Detach an BasicObject from the Rsearch path
getMaintainer.Package

Gets the Maintainer of this package
isReferable.Object

Checks if the object is referable or not
getKnownSubclasses.classRepresentation

Gets the known subclasses
DOLLAR< -.Object

Makes the fields and methods of an Object assignable via the $<- and the [[<- operator
getDocPath.Package

Gets the path to the accompanying documentation (doc/) directory of this package
extend.Object

Extends another class
isDeprecated.Class

Checks if a class is deprecated or not
DOLLAR< -.BasicObject

Makes the fields and methods of an BasicObject assignable via the $<- and the [[<- operator
DOLLAR.Object

Makes the fields and methods of an Object accessable via the $ and the [[ operator
showAndWait.simpleError

Display the message to the user and wait for the user to respond
getInstanciationTime.Object

Gets the time when the object was instanciated
hashCode.Object

Gets a hash code for the Object
as.character.RccViolationException

Gets a string representing of the RCC violation
. About this package

About this package
getPackage.InternalErrorException

Gets the suspicious package likely to contain an error
hasField.BasicObject

Checks if a field exists or not
isGenericS4

Checks if a function is a S4 generic function
getRccUrl.RccViolationException

Static method to get a URL where the RCC can be found
attachLocally.Object

Attaches an Object locally to an environment
DOLLAR.BasicObject

Makes the fields and methods of an BasicObject accessable via the $ and the [[ operator
getPackageNameOf.Rdoc

Gets the package of a method or an object
getFields.Object

Returns the field names of an Object
DOLLAR.Class

Makes the fields and methods of an Class accessable via the $ and the [[ operator
getDate.Package

Gets the date when package was build
getFields.BasicObject

Returns the field names of an BasicObject
getMessage.Exception

Gets the message of the Exception
compile.Rdoc

Compile source code files containing Rdoc comments into Rd files
getDescription.Package

Gets the description of the package
getRdDeclaration.classRepresentation

Gets the class declaration in Rd format
getInternalAddress.Object

Gets the memory location where the Object resides
finalize.Object

Finalizer methods called when object is clean out
getHistory.Package

Gets the history of this package
RccViolationException

An RccViolationException indicates a violation of the R Coding Conventions (RCC)
getManPath.Rdoc

Gets the path to the directory where the Rd files will be saved
objectSize.Object

Gets the size of the Object in bytes
getRdDeclaration.Class

Gets the class declaraction in Rd format
getMessage.InternalErrorException

Gets the message of the exception
getPackage.Class

Gets the package to which the class belongs
getStaticInstance.Class

Gets the static instance of this class
getUrl.Package

Gets the URL of this package
getMethods.Class

Returns the method names of class and its super classes
argsToString.Class

Gets the arguments of a function as a character string
getName.Class

Gets the name of the class
getSuperclasses.Class

Gets the super classes of this class
getName.Package

Gets the name of this package
equals.Object

Compares an object with another
getStackTrace.Exception

Gets the stack trace saved when the exception was created
Object

The root class that every class must inherit from
escapeRdFilename.Rdoc

Escape non-valid characters in a filename
load.Package

Loads a package
objectSize.BasicObject

Gets the size of the BasicObject in bytes
getNameFormat.Rdoc

Gets the current name format
hashCode

Gets an integer hashcoded for Robjects
getRdHierarchy.Class

Gets the class hierarchy in Rd format
print.BasicObject

Prints an BasicObject
dimension

Gets the dimension of the object
isGenericS3

Checks if a function is a S3/UseMethod generic function
showContents.Package

Show the CONTENTS file of this package
getWhen.Exception

Gets the time when the Exception was created
ll.Object

Generates a list of informative properties of all members of an Object
as.character.Object

Gets a character string representing the object
getDescriptionFile.Package

Gets the description file of this package
methodsInheritedFrom.Rdoc

Gets all methods inherited from a class in Rd format
RdocException

RdocException are thrown by the Rdoc compiler
throw.error

Throws (rethrows) an object of class 'error'
getTitle.Package

Gets the Title of this package
Exception

The Exception class to be thrown and caught
as.character.Class

Returns a short string describing the class
setManPath.Rdoc

Sets the path to the directory where the Rd files should be saved
isStatic.Class

Checks if a class is static or not
equals

Compares an object with another
getPath.Package

Gets the library (system) path to this package
isKeyword.Rdoc

Checks if a word is a Rd keyword
novirtual.Object

Returns a reference to the same Object with virtual fields turned off
throw.Exception

Throws an Exception that can be caught
isProtected.Class

Checks if a class is defined protected or not
trycatch

Evaluates an expression with the possibility to catch exceptions (DEPRECATED)
Package

The Package class provides methods for accessing package information
as.character.Exception

Gets a character string representing of the Exception
check.Rdoc

Checks the compiled Rd files
getDetails.Class

Lists the fields and methods of a class
as.character.Package

Gets a string representation of this package
setNameFormat.Rdoc

Sets the current name format
reportBug.InternalErrorException

Send a bug report
getStaticInstance.Object

Gets the static instance of this objects class
ASCII

8-bit ASCII table
as.character.BasicObject

Gets a character string representing the object
InternalErrorException

InternalErrorException represents internal errors
getHowToCite.Package

Gets the howToCite of this package
ll

Generates a list of informative properties of all members of an environment
getSuperclasses.classRepresentation

Gets the superclasses
unload.Package

Unloads a package
charToInt

Converts a vector of integers into a vector of ASCII characters
attach.BasicObject

Attach an BasicObject to the Rsearch path
createManPath.Rdoc

Creates the directory where the Rd files should be saved
getContribUrl.Package

Gets the URL(s) from where this package can be installed
setConstructorS3

Defines a class in S3/UseMethod style
getUsage.Rdoc

Gets the usage of a method
getLastException.Exception

Static method to get the last Exception thrown
showHistory.Package

Show the HISTORY file of this package
getBundlePackages.Package

Gets the names of the other packages that is in the same bundle as this package
getStackTraceString.Exception

Gets the stack trace as a string
getRdMethods.classRepresentation

Gets the methods in Rd format
print.Object

Prints an Object
isReferable.BasicObject

Checks if the object is referable or not
reportBug

Send a bug report about the last Exception thrown
getRdHierarchy.classRepresentation

Gets the class hierarchy in Rd format
load.Object

Static method to load an Object from a file or a connection
setMethodS3

Creates a method for a class using S3/UseMethod style
print.Exception

Prints the Exception
save.Object

Saves an Object to a file or a connection
print.Class

Prints detailed information about the class and its fields and methods
hasField.Object

Checks if a field exists or not
newInstance.Class

Creates a new instance of this class
getInstanciationTime.BasicObject

Gets the time when the object was instanciated
getClasses.Package

Gets all classes of a package
intToChar

Converts a vector of ASCII characters into a vector of integers
ll.Package

Generates a list of informative properties of all members of the package
staticCode.Object

Method that will be call each time a new instance of a class is created
setGenericS3

Creates a generic function in S3/UseMethod style
getSource.RdocException

Gets the source of the exception
getLicense.Package

Gets the License of this package
getPosition.Package

Gets the search path position of the package
getRdMethods.Class

Gets the methods of a class in Rd format
detach.Object

Detach an Object from the Rsearch path
Rdoc

Class for converting Rdoc comments to Rd files
extend

Extends a object
trim

Converts to a string and removes leading and trailing whitespace
isAbstract.Class

Checks if a class is abstract or not
hashCode.BasicObject

Gets a hash code for the object
isLoaded.Package

Checks if the package is installed on the search path or not
isPrivate.Class

Checks if a class is defined private or not
printStackTrace.Exception

Prints the stack trace saved when the exception was created
showDescriptionFile.Package

Show the DESCRIPTION file of this package
typeOfClass

Gets the type of a class (S3 or S4)
update.Package

Updates the package is a newer version is available
DOLLAR< -.Class

Makes the fields and methods of an Class assignable via the $<- and the [[<- operator
getAuthor.Package

Gets the Author of this package
equals.BasicObject

Compares an object with another
hierarchy.Rdoc

Gets the class hierarchy
throw

Throws an Exception