Learn R Programming

fuj (version 0.2.1)

colons: Colons

Description

Get an object from a namespace

Usage

package %::% name

package %:::% name

package %colons% name

Value

The variable name from package package

Arguments

package

Name of the package

name

Name to retrieve

WARNING

To reiterate from other documentation: it is not advised to use ::: in your code as it will retrieve non-exported objects that may be more likely to change in their functionality that exported objects.

Details

The functions mimic the use of :: and ::: for extracting values from namespaces. %colons% is an alias for %::%.

See Also

Examples

Run this code
identical("base" %::% "mean", base::mean)
"fuj" %:::% "colons_example" # unexported value

Run the code above in your browser using DataLab