saveError: Save an error into the output database

Description Usage Arguments Details

View source: R/saveError.R

Description

Environment variables:

Usage

1
saveError(error, outputFile, errorFile, jobId, node, resultTable, fn, conn)

Arguments

error

The error to record.

outputFile

File containing the output of R, default to the value of environment variable OUTPUT_FILE.

errorFile

File containing the error of R, default to the value of environment variable ERROR_FILE.

jobId

ID of the job, defaults to the value of environment parameter JOB_ID

node

Node used for the execution of the script, defaults to the value of environment parameter NODE

resultTable

Name of the result table, defaults to the value of environment parameter RESULT_TABLE

fn

Hint about the function used to produce the data

conn

The connection to the database, default to global variable out_conn

Details

- Execution context: JOB_ID : ID of the job NODE : Node used for the execution of the script RESULT_TABLE: Name of the result table, defaults to 'job_result' OUT_JDBC_DRIVER : class name of the JDBC driver for output results OUT_JDBC_JAR_PATH : path to the JDBC driver jar for output results OUT_JDBC_URL : JDBC connection URL for output results OUT_JDBC_USER : User for the database connection for output results OUT_JDBC_PASSWORD : Password for the database connection for output results OUTPUT_FILE : File containing the output of R ERROR_FILE : File containing the errors of R


LREN-CHUV/r-mip-adaptor documentation built on May 20, 2019, 5:45 p.m.