BQM_Array: create BQM_Array instance given url (filepath) and entity...

View source: R/BQM_Array.R

BQM_ArrayR Documentation

create BQM_Array instance given url (filepath) and entity (host) name

Description

create BQM_Array instance given url (filepath) and entity (host) name

Usage

BQM_Array(filepath)

Arguments

filepath

a BQM_Source instance

Value

an instance of DelayedArray-class

Examples


# authentication issues may arise.  if you are authorized
# to use bigquery with GPC project isb-cgc, a token may
# be generated through the following
# options(httr_oob_default=TRUE)
# example(BQM_Source)
# a browser authentication event may occur, or if you are in
# a browserless session, a URL will be emitted, possibly in
# the context of warnings ... browse to this URL and an
# authentication event will occur, and a token will be provided
# this can be provided back to the R session to allow the
# query to proceed
#
if (interactive()) {
  con = bqConn(dataset="yriMulti", project=Sys.getenv("CGC_BILLING"),
       billing=Sys.getenv("CGC_BILLING"))
  ss = BQM_Source(con, "banovichSE_methylationData", "cg_Methyl450")
  #BQM_Array(ss)
  BQM_Array(ss)["cg00000029",c("NA18498", "NA18499", "NA18501"),drop=FALSE]
}

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