Learn R Programming

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

R.oo (version 1.9.8)

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 maintenance for package developers. The package has been developed since 2001 and is now considered very stable. This is a cross-platform package implemented in pure R that defines standard S3 classes without any tricks.

Copy Link

Version

Install

install.packages('R.oo')

Monthly Downloads

207,394

Version

1.9.8

License

LGPL (>= 2.1)

Maintainer

Henrik Bengtsson

Last Published

June 28th, 2012

Functions in R.oo (1.9.8)

DOLLAR< -.Object

Makes the fields and methods of an Object assignable via the $<- and the [[<- operator
as.character.RccViolationException

Gets a string representing of the RCC violation
equals.BasicObject

Compares an object with another
charToInt

Converts a vector of ASCII characters into a vector of integers
Exception

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

Gets a character string representing the object
check.Rdoc

Checks the compiled Rd files
extend.BasicObject

Extends another class
attach.Object

Attaches an Object to the R search path
Non-documented objects

Non-documented objects
getContents.Package

Gets the contents of this package
R.oo-package

Package R.oo
as.character.Class

Returns a short string describing the class
equals

Compares an object with another
getEnvironment.Object

Gets the environment of this object
forName.Class

Gets a Class object by a name of a class
attach.BasicObject

Attach an BasicObject to the R search path
DOLLAR< -.BasicObject

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

Returns the method names of class and its super classes
getDocPath.Package

Gets the path to the accompanying documentation (doc/) directory of this package
abort

Aborts the current expression call
as.character.BasicObject

Gets a character string representing the object
Interface

The Interface class
getBundlePackages.Package

Gets the names of the other packages that is in the same bundle as this package
detach.Object

Detach an Object from the R search path
getClassS4Usage.Rdoc

Gets the usage of a S4 class
getRdDeclaration.classRepresentation

Gets the class declaration in Rd format
extend.Interface

Extends another Interface class
Class

The Class class describes an Object class
getInstantiationTime.BasicObject

Gets the time when the object was instantiated
getConstructorS3

Get a constructor method
getPosition.Package

Gets the search path position of the package
as.character.Interface

Gets a character string representing the Interface
extend.Object

Extends another class
DOLLAR.Class

Makes the fields and methods of an Class accessable via the $ and the [[ operator
getCalls.Exception

Gets the active calls saved when the exception was created
getPackageNameOf.Rdoc

Gets the package of a method or an object
getLastException.Exception

Static method to get the last Exception thrown
BasicObject

A root class like Object but without references
getNameFormat.Rdoc

Gets the current name format
DOLLAR.BasicObject

Makes the fields and methods of an BasicObject accessable via the $ and the [[ operator
getSuperclasses.classRepresentation

Gets the superclasses
as.character.Package

Gets a string representation of this package
attachLocally.Object

Attaches an Object locally to an environment
ASCII

8-bit ASCII table
extend

Extends a object
hashCode.Object

Gets a hash code for the Object
Package

The Package class provides methods for accessing package information
getFields.BasicObject

Returns the field names of an BasicObject
getName.Package

Gets the name of this package
InternalErrorException

InternalErrorException represents internal errors
getKeywords.Rdoc

Gets the keywords defined in R with descriptions
getRdDeclaration.Class

Gets the class declaraction in Rd format
declaration.Rdoc

Gets the class declaration
getExamplePath.Package

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

Gets the description file of this package
getFields.Object

Returns the field names of an Object
RccViolationException

An RccViolationException indicates a violation of the R Coding Conventions (RCC)
gc.Object

Clear cached fields and calls the garbage collector
argsToString.Class

Gets the arguments of a function as a character string
getFields.Interface

Returns NULL
clearCache.Object

Clear fields that are defined to have cached values
hasField.BasicObject

Checks if a field exists or not
dimension

Gets the dimension of the object
compile.Rdoc

Compile source code files containing Rdoc comments into Rd files
getStaticInstance.Class

Gets the static instance of this class
getClasses.Package

Gets all classes of a package
hashCode.BasicObject

Gets a hash code for the object
newInstance.Class

Creates a new instance of this class
objectSize

Gets the size of the object in bytes
isDeprecated.Class

Checks if a class is deprecated or not
getName.environment

Gets the name of an environment
getInstantiationTime.Object

Gets the time when the object was instantiated
isKeyword.Rdoc

Checks if a word is a Rd keyword
isPrivate.Class

Checks if a class is defined private or not
equals.Object

Compares an object with another
clearLookupCache.Object

Clear internal fields used for faster lookup
isLoaded.Package

Checks if the package is installed on the search path or not
getContribUrl.Package

Gets the URL(s) from where this package can be installed
argsToString.Rdoc

Gets the arguments signature of a function
getVersion.Package

Gets the version of this package
getUrl.Package

Gets the URL of this package
hasField.Object

Checks if a field exists or not
getManPath.Rdoc

Gets the path to the directory where the Rd files will be saved
showDescriptionFile.Package

Show the DESCRIPTION file of this package
getFieldModifiers.Object

Gets all types of field modifiers
showContents.Package

Show the CONTENTS file of this package
getKnownSubclasses.classRepresentation

Gets the known subclasses
createName.Rdoc

Creates a class-method name
getWhen.Exception

Gets the time when the Exception was created
clone.Object

Clones an Object
getUsage.Rdoc

Gets the usage of a method
isProtected.Class

Checks if a class is defined protected or not
getStackTraceString.Exception

Gets the stack trace as a string
getDate.Package

Gets the date when package was build
staticCode.Object

Method that will be call each time a new instance of a class is created
DOLLAR< -.Class

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

Gets the size of an environment in bytes
getPackage.InternalErrorException

Gets the suspicious package likely to contain an error
intToChar

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

Gets the Bundle that this package might belong to
RdocException

RdocException are thrown by the Rdoc compiler
Object

The root class that every class must inherit from
load.Object

Static method to load an Object from a file or a connection
print.BasicObject

Prints an BasicObject
getRccUrl.RccViolationException

Static method to get a URL where the RCC can be found
hashCode

Gets an integer hashcoded for R objects
finalize.Object

Finalizer methods called when object is clean out
print.Class

Prints detailed information about the class and its fields and methods
getRdTitle.Rdoc

Extracts the title string of a Rd file
save.Object

Saves an Object to a file or a connection
getRdHierarchy.classRepresentation

Gets the class hierarchy in Rd format
getDetails.Class

Lists the fields and methods of a class
createManPath.Rdoc

Creates the directory where the Rd files should be saved
DOLLAR.Object

Makes the fields and methods of an Object accessable via the $ and the [[ operator
getChangeLog.Package

Gets the change log of this package
isPublic.Class

Checks if a class is defined public or not
print.Object

Prints an Object
getMaintainer.Package

Gets the Maintainer of this package
getFields.Class

Returns the field names of a class
hierarchy.Rdoc

Gets the class hierarchy
Rdoc

Class for converting Rdoc comments to Rd files
uses.Interface

Specifies that an object uses this Interface
getAuthor.Package

Gets the Author of this package
unload.Package

Unloads a package
ll

Generates a list of informative properties of all members of an environment
getMessage.Exception

Gets the message of the Exception
getLicense.Package

Gets the License of this package
methodsInheritedFrom.Rdoc

Gets all methods inherited from a class in Rd format
getInternalAddress.Object

Gets the memory location where the Object resides
getHowToCite.Package

Gets the howToCite of this package
as.character.Exception

Gets a character string representing of the Exception
as.character.RdocException

Gets a character string representing of the RdocException
getKnownSubclasses.Class

Gets all subclasses that are currently loaded
objectSize.BasicObject

Gets the size of the BasicObject in bytes
throw

Throws an Exception
getSource.RdocException

Gets the source of the exception
getRdMethods.Class

Gets the methods of a class in Rd format
isReferable.BasicObject

Checks if the object is referable or not
getStaticInstance.Object

Gets the static instance of this objects class
getDescription.Package

Gets the description of the package
getTitle.Package

Gets the Title of this package
load.Package

Loads a package
getStackTrace.Exception

Gets the stack trace saved when the exception was created
getRdMethods.classRepresentation

Gets the methods in Rd format
getDevelUrl.Package

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

Gets the package to which the class belongs
registerFinalizer.Object

Registers a finalizer hook for the object
isVisible.Rdoc

Checks if a member is visible given its modifiers
newInstance.Object

Creates a new instance of the same class as this object
getDataPath.Package

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

Creates a new instance of the same class as this object
detach.BasicObject

Detach an BasicObject from the R search path
ll.Package

Generates a list of informative properties of all members of the package
isBeingCreated.Class

Checks if a class is currently being initiated initiated
getPath.Package

Gets the library (system) path to this package
setConstructorS3

Defines a class in S3/UseMethod style
printStackTrace.Exception

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

Checks if the package is older than a given version
objectSize.Object

Gets the size of the Object in bytes
novirtual.Object

Returns a reference to the same Object with virtual fields turned off
showChangeLog.Package

Show the change log of this package
throw.Exception

Throws an Exception that can be caught
print.Exception

Prints the Exception
getSuperclasses.Class

Gets the super classes of this class
escapeRdFilename.Rdoc

Escape non-valid characters in a filename
isReferable.Object

Checks if the object is referable or not
print.Interface

Prints an Interface
getMessage.InternalErrorException

Gets the message of the exception
getRdHierarchy.Class

Gets the class hierarchy in Rd format
setManPath.Rdoc

Sets the path to the directory where the Rd files should be saved
getEnvironment.Package

Gets the environment of a loaded package
ll.Object

Generates a list of informative properties of all members of an Object
getName.Class

Gets the name of the class
update.Package

Updates the package is a newer version is available
throw.error

Throws (rethrows) an object of class 'error'
typeOfClass

Gets the type of a class (S3 or S4)
trim

Converts to a string and removes leading and trailing whitespace
showHowToCite.Package

Show the HOWTOCITE file of this package
isAbstract.Class

Checks if a class is abstract or not
isStatic.Class

Checks if a class is static or not
setNameFormat.Rdoc

Sets the current name format