getData: getData wrapper for httr::GET(some_url)

Description Usage Arguments Examples

View source: R/csjfd.R

Description

Wrapper around httr::GET(some_url)

Usage

1
getData(some_url,refresh_cache)

Arguments

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

Examples

 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)
  }

netskink/CSJFD documentation built on May 27, 2019, 7:40 a.m.