response: Fetch 'GDCQuery' metadata from GDC

Description Usage Arguments Value Examples

View source: R/response.R

Description

Fetch GDCQuery metadata from GDC

Usage

1
2
3
4
5
6
7
response(x, ...)

## S3 method for class 'GDCQuery'
response(x, from = 0, size = 10, ...,
  response_handler = jsonlite::fromJSON)

response_all(x, ...)

Arguments

x

a GDCQuery object

...

passed to httr (good for passing config info, etc.)

from

integer index from which to start returning data

size

number of records to return

response_handler

a function that processes JSON (as text) and returns an R object. Default is fromJSON.

Value

A GDCResponse object which is a list with the following members:

Examples

1
2
3
4
5
6
7
8
# basic class stuff
gCases = cases()
resp = response(gCases)
class(resp)
names(resp)

# And results from query
resp$results[[1]]

GenomicDataCommons documentation built on Nov. 8, 2020, 11:08 p.m.