register: register a URL with remote and/or local registries

Description Usage Arguments Details Value Examples

View source: R/register.R

Description

register a URL with remote and/or local registries

Usage

1
register(url, registries = default_registries(), ...)

Arguments

url

a URL for a data file (or list of URLs)

registries

list of registries at which to register the URL

...

additional arguments

Details

Local registries can be specified as one or more file paths where local registries should be created. Usually a given application will want to register in only one local registry. For most use cases, the default registry should be sufficient.

Value

the httr::response object for the request (invisibly)

Examples

1
2
3
4
5
 


register(paste0("https://knb.ecoinformatics.org/knb/d1/mn/v2/object/",
"ess-dive-457358fdc81d3a5-20180726T203952542"))

cboettig/contentid documentation built on April 1, 2021, 11:25 p.m.