View source: R/docker.wrapper.R
docker.wrapper | R Documentation |
This function is run by Docker when a vtg
-based container is
started. It handles communication (input/output) with the Node
by reading/writing to files.
It expects the following environment variables to be set:
DATABASE_URI
: filename of a CSV file that can be read by
the R-function read.csv()
without specifying format-details.
INPUT_FILE
: filename that contains algorithm input in RDS format.
Input should be a list()
as created using create.task.input.unserialized()
.
OUTPUT_FILE
: filename of file that's used to write results to.
TOKEN_FILE
: filename of file contains a JSON Web Token.
Performs the following actions:
Load data from the CSV file
Loads the input parameters provided to the container in input.txt
.
Wraps the docker input/output for dispatch.RPC()
.
docker.wrapper(pkg = "")
pkg |
|
null
; output will be written to output.txt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.