remote root that will replace the local root of the fullPath
fullPath
the full path to make remote
Details
A helper function to translate a file path on a LabKey web server to a path accessible
by a remote machine. For example, if an R script is run on an R server that is a different
machine than the LabKey server and that script references data files on the LabKey server,
a remote path needs to be created to correctly reference these files. The local and
remote roots of the data pipeline are included by LabKey in the prolog of an R View report
script. Note that the data pipeline root references are only included if an administrator
has enabled the Rserve Reports experimental feature on the LabKey server. If the
remoteRoot is empty or the fullPath does not contain the localRoot then the fullPath is
returned without its root being changed.
Value
A character array containing the full path.
Author(s)
Dax Hawkins
Examples
## Not run:
# library(Rlabkey)
fcsFile <- labkey.makeRemotePath(
localRoot=labkey.pipeline.root,
remoteRoot=labkey.remote.pipeline.root,
fullPath=fcsFile);
# given localRoot <- "c:datafcs"
# given remoteRoot <- "/volumes/fcs"
# given fullPath <- "c:datafcs
unAaaa.fcs"
# returns "/volumes/fcs/runA/aaa.fcs
## End(Not run)