WPS icon indicating copy to clipboard operation
WPS copied to clipboard

WPS4R resources as reference

Open nuest opened this issue 10 years ago • 0 comments

The resource annotation mechanism can be extended to configure a resource to be used "as reference", meaning that it is not copied to the workspace but that it's full path is saved in the session under a specific name and can be used from there. WPS4R only checks if the path exists and puts the path(s) into the R session as a fixed named variable (array or list), the list containing a mapping from "foldername" > "full path folder name", e.g. given the R script

# wps.import: raw/data

the R session variable created by WPS4R would be as follows:

wps4r.resources <- list("raw/data" = "/var/data/wps-processes/myProcess/raw/data"

Naturally the user will have to know the file names etc. within the resource for this to work, but that is already the case with normal resources.

nuest avatar May 09 '14 10:05 nuest