Description Usage Arguments Value Note Examples
Simplify connection to a BigQuery dataset for the project "isb-cgc"
1 2 3 4 5 | cgcConn(
dataset = "TCGA_bioclin_v0",
project = "isb-cgc",
billing = Sys.getenv("CGC_BILLING")
)
|
dataset |
character string with dataset name |
project |
character string with project name |
billing |
character(1) with billing code |
instance of BigQueryConnection-class
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.
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)
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.