ping: Ping a CKAN server to test that it's up or down.

Description Usage Arguments Examples

View source: R/ping.R

Description

Ping a CKAN server to test that it's up or down.

Usage

1
ping(url = get_default_url(), as = "logical", ...)

Arguments

url

Base url to use. Default: http://data.techno-science.ca. See also ckanr_setup and get_default_url.

as

(character) One of list (default), table, or json. Parsing with table option uses jsonlite::fromJSON(..., simplifyDataFrame = TRUE), which attempts to parse data to data.frame's when possible, so the result can vary from a vector, list or data.frame. (required)

...

Curl args passed on to POST (optional)

Examples

1
2
3
4
5
## Not run: 
ping()
ping(as = "json")

## End(Not run)

ckanr documentation built on May 30, 2017, 2:21 a.m.