connectToTransmart: Initializes a new connection to the tranSMART database via...

Description Usage Arguments Details Author(s) See Also Examples

Description

This function initializes the necessary connection settings to access the tranSMART database.

Usage

1
connectToTransmart(transmartDomain, use.authentication = TRUE, ...)

Arguments

transmartDomain

a character string naming the domain of the tranSMART server to connect to.

use.authentication

logical indicating whether or not to use OAuth authentication. Must be TRUE (default setting) if the tranSMART server requires OAuth authentication

...

additional arguments to be passed on to authenticateWithTransmart

Details

This function initialises the connection settings to a tranSMART server. It will set up the connection settings inside the transmartClientEnv environment (if non-existent, this environment is created), which will enable this R client to access the tranSMART database through the available get methods (eg. getStudies).

If use.authentication is not disabled, it will also guide the user through the authentication process.

Author(s)

Tim Dorscheidt, Jan Kanis, Rianne Jansen. Contact: development@thehyve.nl

See Also

getStudies.

For more information about the transmart RClient package and what it can be used for: transmartRClient-package

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
  
  # Set the function's \code{transmartDomain} argument to the location of the tranSMART database: 
  localTransmartDomain <- "http://some.transmart.server/transmart"
  connectToTransmart(localTransmartDomain)
  
  # Follow the instructions for authentication.
  
## End(Not run)

thehyve/heim-RInterface documentation built on May 31, 2019, 9:12 a.m.