Learn R Programming

contentid (version 0.0.15)

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

Description

register a URL with remote and/or local registries

Usage

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

Value

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

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.

Examples

Run this code
# NOT RUN {

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

Run the code above in your browser using DataLab