dot-methodWithNext: Saves the next method in the method meta data

.methodWithNextR Documentation

Saves the next method in the method meta data

Description

Promotes the given method definition to an instance of MethodWithNext, thereby recording the next method in the nextMethod slot.

Usage

.methodWithNext(method, nextMethod, .cache = FALSE)

Arguments

method

the MethodDefinition object to promote

nextMethod

the MethodDefinition object to record as the next method

.cache

whether to cache the promoted method definition object (using methods::cacheMethod())

Value

an instance of MethodWithNext, which has the next method in the nextMethod slot

Note

MethodWithNext objects are normally returned by methods::addNextMethod(), but a constructor function for the class seems missing (or is undocumented?). This provides one.


ropensci/RNeXML documentation built on Jan. 14, 2023, 4:36 a.m.