cgcConn: Simplify connection to a BigQuery dataset for the project...

View source: R/seByTumor.R

cgcConnR Documentation

Simplify connection to a BigQuery dataset for the project "isb-cgc"

Description

Simplify connection to a BigQuery dataset for the project "isb-cgc"

Usage

cgcConn(dataset = "TCGA_bioclin_v0", project = "isb-cgc",
  billing = Sys.getenv("CGC_BILLING"))

Arguments

dataset

character string with dataset name

project

character string with project name

billing

character(1) with billing code

Value

instance of BigQueryConnection-class

Note

This function operates on a BigQuery project to select a dataset and return a connection. If the google billing code is assigned to environment variable CGC_BILLING, that will be used to authenticate the user and collect charges. Alternately the billing code can be given as a parameter.

Examples

if (interactive()) {
 cgcConn
 require(bigrquery)
 # defaults concern new GDC-compliant format
 if (nchar(Sys.getenv("CGC_BILLING"))>0) {
     clin = cgcConn()
     dbListTables(clin)
 }
}

shwetagopaul92/restfulSE documentation built on Oct. 12, 2022, 10:51 p.m.