cgcConn {restfulSE}R 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

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

[Package restfulSE version 1.0.2 Index]