R/load_pgk_metadata.R
load_pkg_metadata.Rd
`load_pkg_metadata()` is essentially a wrapper around `DPchecker::load_metadata` with the directory structure pre-set to work well the default location that `get_data_package` stores downloaded data packages. If you did not use the default settings for `get_data_package` (or downloaded a data package manually) you may find it easier to adjust the directory structure pointing to your data package and load the metadata using `DPchecker::load_metadata()`. Much like `load_metadata`, `load_pkg_metadata` requires that there be a single .xml file in the data package directory, that the metadata file name end in *_metadata.xml, and that the file contain schema-valid EML metadata.
load_pkg_metadata(holding_id, directory = "data")
one data frame to the global environment.
if (FALSE) { # \dontrun{
load_pgk_metadata(2266200)
} # }