Uses CKAN to find the correct URL in the education ministry's open data catalogue and retrieve the file.

vz_get_register_xml(
  url = NULL,
  package_id = NULL,
  write_file = F,
  dest_dir = getwd()
)

Arguments

url

URL; if left to NULL, will use internal default

package_id

used to point to per-region datasets (see vz_list_registers()); if left unset, defaults to state-wide data

write_file

Whether to keep the downloaded XML file. Currently only writing to the working directory is supported.

dest_dir

Where to write the resulting XML

Value

Path to downloaded (XML) file.