The iSEEindexRcallResource class
Source:R/iSEEindexResource-class.R
iSEEindexRcallResource-class.RdThe iSEEindexRcallResource class represents a resource accessible through the result of an R call. A URI for this type of resource uses the prefix “rcall://”.
Value
The constructor function iSEEindexRcallResource() returns an object
of object of class iSEEindexRcallResource.
Details
Required metadata:
- uri
Character scalar. R call which, once evaluated, produces a character scalar that is the URI of the resource.
URI format
The URI must contain valid R code, once the prefix rcall:// is removed.
The code must return the path to an existing file on the local filesystem.
For instance:
Slot overview
This class inherits all slots from its parent class iSEEindexResource.
Supported methods
In the following code snippets, x is an instance of a
iSEEindexRcallResource class.
Refer to the documentation for each method for more details on the remaining
arguments.
precache(x, ...)trims thercall://prefix, evaluates the remainder of the URI as R code, and caches a copy of the resource located at the resulting file path using BiocFileCache, before returning the file path to the cached file.
Examples
iSEEindexRcallResource(list(
uri = "rcall://system.file(package='iSEEindex','ReprocessedAllenData_config_01.R')"
))
#> class: iSEEindexRcallResource
#> - uri: rcall://system.file(package='iSEEindex','ReprocessedAllenData_config_01.R')