View source: R/tcgaretriever_v_1_9e.R
cb_query | R Documentation |
Submit a query by getting or posting to the URL provided as argument (typically a cbioportal.org URL). The function attempts the same query recursively until the content has been completely downloaded. If 'body' is NULL, the query is submitted via GET. Otherwise, the query is submitted via POST.
cb_query(my_url, body = NULL)
my_url |
String. The URL pointing to the cBioPortal API. |
body |
String. Parameters to be passed via POST to the query URL. Can be NULL. |
This is a core function invoked by other functions in the package.
Data.frame including data retrieved from cBioPortal.
Damiano Fantini, damiano.fantini@gmail.com
https://www.data-pulse.com/dev_site/TCGAretriever/
# The example below requires an active Internet connection.
## Not run:
my_url <- "https://www.cbioportal.org/api/studies"
x <- TCGAretriever:::cb_query(my_url)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.