jobcontrol_connection: Create a connection to the job control database

Description Usage Arguments Details Examples

Description

This function is called behind the scenes by any function that needs to access the job contol database.You will probably only need it yourself if you want to do reporting on the database (see examples). However the details selection below explains how default connection parameters can be set, something that you will need to do at least once.

Usage

1

Arguments

...

Named arguments to pass to the dbConnect function, combined with any set in options(Rgridengineswarm.connpararams) (see details).

Details

By default, the details of the database connection are read from the “Rgridengineswarm“ group in the current user's .my.cnf (usually located at $HOME/.my.cnf). Here is an example of what this might look like:

[Rgridengineswarm] database = jobcontrol user = fred password = supersecure host = 127.0.0.1

You can change the name of the default connection group using the option Rgridengineswarm.connpararams e.g.

options(Rgridengineswarm.connpararams=list(group='myspecialjobdb'))

Examples

1
2
# get current default connection parameters
getOption('Rgridengineswarm.connpararams')

jefferislab/Rgridengineswarm documentation built on May 19, 2019, 3:58 a.m.