Description Usage Arguments Examples
Wrapper around httr::GET(some_url)
1 | getData(some_url,refresh_cache)
|
some_url |
A url to fetch |
refresh_cache |
if true it will always fetch the url. If false it will use cached results if they exist |
1 2 3 4 5 6 7 8 9 10 11 12 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (some_url)
{
cat("getData called with url ", some_url, "\n")
cat("Fetching url .....\n")
url_page_response = httr::GET(some_url)
return(url_page_response)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.