R/changes.R

Defines functions changes

Documented in changes

#' Get an activity stream of recently changed datasets on a site.
#'
#' @export
#' @template paging
#' @template args
#' @template key
#' @examples \dontrun{
#' changes()
#' changes(as = 'json')
#' changes(as = 'table')
#' }
changes <- function(offset = 0, limit = 31,url = get_default_url(),
  key = get_default_key(), as ='list', ...) {

  args <- cc(list(offset = offset, limit = limit))
  res <- ckan_GET(url, 'recently_changed_packages_activity_list', args,
    key = key, opts = list(...))
  switch(as, json = res, list = jsl(res), table = jsd(res))
}

Try the ckanr package in your browser

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

ckanr documentation built on March 31, 2023, 6:54 p.m.