The function can be used to test a whole pxweb api by using the api base url. By using a branch in a tree the api is tested below this branch.
test_pxweb_api(url, download_all = FALSE,
seed = as.integer(Sys.time()))
The base url to the pxweb api (or a branch of the metadata tree)
Should all data be downloaded (TRUE) or sample (FALSE)
Seed to use if download_all is FALSE and a sample is downloaded
Function returns a data.frame with information on each node
Two variables are added:
checked
: The node has been checked
error
: Whether there were errors encountered with the call
download_error
: Whether there were errors encountered during download