R6 base class for all other to inherit from
url
character - possibly wrong but usually right!
node
xml2::xml_node
verbose
logical
prefix
xpath namespace prefix, NA or NULL or charcater() to ignore
tries
numeric number of requests attempts before failing
encoding
character, by default 'UTF-8'
base_url
character, the base URL for the service
new()
initialize an instance of ThreddsNode
ThreddsNode$new(
x,
verbose = FALSE,
n_tries = 3,
prefix = NULL,
ns_strip = FALSE,
encoding = "UTF-8",
base_url = ""
)
x
url or xml2::xml_node
verbose
logical, TRUE to be noisy (default FALSE)
n_tries
numeric, defaults to 3
prefix
character, the namespace to examine (default NULL, inherited when initialized)
ns_strip
logical, if TRUE then strip namespace (default FALSE)
encoding
character, by default 'UTF-8'
base_url
character, the base URL for the service
prefix
character, to be printed before each line of output (like spaces)
...
other argum,ents (ignored for now)
GET()
Retrieve a node of the contents at this nodes URL
ThreddsNode$GET()
ThreddsNode or subclass or NULL
browse()
Browse the URL if possible
ThreddsNode$browse()
children_names()
Retrieve a vector of unique child names
ThreddsNode$children_names(...)
...
further arguments for xml_children_names
a vector of zero or more child names
clone()
The objects of this class are cloneable with this method.
ThreddsNode$clone(deep = FALSE)
deep
Whether to make a deep clone.