RODProt (version 0.2.0)

read_data_package: Read in a data package.

Description

Read in a data package.

Usage

read_data_package(content, base, getter)

Arguments

content
The Data Package to parse. This can either be a URL, a path to a local file, or a character string containing the actual JSON describing the data package. See http://www.dataprotocols.org/en/latest/data-packages.html.
base
The base URL or directory for all references to data. This will be ignored if the content provided is either a URL or a local file. Only if content is a character string will this be used.
getter
The Getter to use when retrieving the specified data. By default, the getter will be inferred based on the structure of the content parameter. Alternatively, you can explicitly set one here, or even provide a custom getter.