The iSEEindexLocalhostResource class
Source:R/iSEEindexResource-class.R
iSEEindexLocalhostResource-class.Rd
The iSEEindexLocalhostResource class represents a resource accessible through a local filepath. A URI for this type of resource uses the prefix “localhost://”.
Value
The constructor function iSEEindexLocalhostResource()
returns an
object of object of class iSEEindexLocalhostResource
.
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
iSEEindexLocalhostResource class.
Refer to the documentation for each method for more details on the remaining
arguments.
precache(x, ...)
trims thelocalhost://
prefix, and caches a copy of the resource located at the resulting file path using BiocFileCache, before returning the file path to the cached file.
Absolute and relative paths
Absolute and relative paths are both supported.
Absolute paths require an additional /
(forward slash)
following the double forward slash //
separating the scheme component of
the URI.
For instance:
localhost://path/to/file
refers to the relative pathpath/to/file
(relative to the working directory when the Shiny application is launched).localhost:///path/to/file
refers to the absolute path/path/to/file
.
Examples
iSEEindexLocalhostResource(list(uri = "localhost:///example/absolute/path"))
#> class: iSEEindexLocalhostResource
#> - uri: localhost:///example/absolute/path
iSEEindexLocalhostResource(list(uri = "localhost://example/relative/path"))
#> class: iSEEindexLocalhostResource
#> - uri: localhost://example/relative/path