Low-level function for reading metadata and deserialising it. This function can be used to directly read a metadata json file without reference to a root which contains it. It may be useful in the context of reading a metadata file written out as part of a failed run.
Value
A list of outpack metadata; see the schema for details. In
contrast to reading the json file directly with
jsonlite::fromJSON
, this function will take care to convert
scalar and length-one vectors into the expected types.
Details
Custom metadata saved by plugins may not be deserialised as
expected when called with this function, as it is designed to
operate separately from a valid orderly root (i.e., it will load
data from any file regardless of where it came from). If plugins
is TRUE
(the default) then we will deserialise all data that
matches any loaded plugin. This means that the behaviour of this
function depends on if you have loaded the plugin packages. You
can force this by running orderly2::orderly_config()
within any
orderly directory, which will load any declared plugins.