scbGetMetadata: Get data

Description Usage Arguments Examples

Description

Get data from the API. If at the lowest node, provide the user with a friendly message about this.

Usage

1
2
scbGetMetadata(path = NULL, node = NULL, topnodes = NULL, quiet = TRUE,
  ...)

Arguments

path

URL to fetch metadata from. If left empty, the function constructs a URL from the node and topnodes arguments

node

A string with the name of the node to fetch. This is ignored if path is supplied.

topnodes

A string or list of strings with the names of the parent nodes of node. This is ignored if path is supplied.

quiet

Quiet mode (never return a message to the user)

...

Further arguments passed to baseURL().

Examples

1
2
3
4
5
6
7
8
# Define variable name
topnode <- scbGetMetadata()

# Get metadata for the first element in the top node
nextnode <- scbGetMetadata(topnode$URL[1])

# Get metadata for a named node with named topnodes
a_node <- scbGetMetadata()

LCHansson/sweSCB documentation built on May 8, 2019, 5:46 p.m.