ImmuneSpaceR (version 1.0.2)

CreateConnection: CreateConnection

Description

Constructor for ImmuneSpaceConnection class

Usage

CreateConnection(study = NULL, verbose = FALSE)

Arguments

study
A "character" vector naming the study.
verbose
A "logical" whether to print the extra details for troubleshooting.

Value

an instance of an ImmuneSpaceConnection

Details

Instantiates an ImmuneSpaceConnection for study The constructor will try to take the values of the various `labkey.*` parameters from the global environment. If they don't exist, it will use default values. These are assigned to `options`, which are then used by the ImmuneSpaceConnection class.

See Also

ImmuneSpaceConnection

Examples

Run this code
## Not run: 
#   # Single study 
#   con <- CreateConnection("SDY269")
#   # Cross study
#   con <- CreateConnection("")
# ## End(Not run)

sdy <- try(CreateConnection("SDY269"))
if(inherits(sdy, "try-error")){
  print("Read the Introduction vignette for more information on how to set up
  a .netrc file.")
}

Run the code above in your browser using DataLab