set_ohdsi_default_src: Set the default src for future Argos functions

Description Usage Arguments Details Value Examples

Description

Several of the utility functions in Argos query tables in a database containing an OHDSI CDM. All accept a src argument allowing you to specify the data source to use when creating the necessary tbl objects. If you omit this argument, the ohdsi_default_src() function is called to get the data source.

Usage

1

Arguments

src

A src object.

Details

You are free to define ohdsi_default_src() yourself, or you may use this function as syntactic sugar. It defines ohdsi_default_src, in the caller's environment, to simply return the supplied argument.

Value

A function that returns the value of the src argument.

Examples

1
2
3
4
5
6
## Not run: 
set_default_ohdsi_src(src_argos())
set_default_ohdsi_src(my.src)
set_default_ohdsi_src(src_postgres(...))

## End(Not run)

baileych/ohdsi-argos documentation built on Dec. 1, 2019, 12:41 p.m.