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

Description Usage Arguments Value Note Examples

View source: R/seByTumor.R

Description

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

Usage

1
2
3
4
5
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

1
2
3
4
5
6
7
8
9
if (interactive()) {
 cgcConn
 require(bigrquery)
 # defaults concern new GDC-compliant format
 if (nchar(Sys.getenv("CGC_BILLING"))>0) {
     clin = cgcConn()
     dbListTables(clin)
 }
}

restfulSE documentation built on Nov. 8, 2020, 8:01 p.m.