R/ppQuery.R

Defines functions ppQuery

Documented in ppQuery

ppQuery <-
function(op, baseurl, args=NULL, ...){
    response <- GET(paste(baseurl, op, '.json', args, sep=''), ...)
    stop_for_status(response)
    fromJSON(content(response, as = 'text'), flatten = TRUE)
}

Try the RPublica package in your browser

Any scripts or data that you put into this service are public.

RPublica documentation built on May 2, 2019, 2:34 a.m.