Skip to contents

Stores a resources data frame (typically created by collect_resources()) as the $resources component of a QWAmetadata object. Appended to any previously stored resources, $images used to infer linked labels.

Usage

add_resources(x, path, recursive = FALSE, include_unmatched = FALSE)

Arguments

x

A QWAmetadata object.

path

Path to a directory to scan for files.

recursive

If TRUE, recurse into sub-directories (default FALSE).

include_unmatched

If TRUE, resources that could not be matched to a specific type are included as "other" (default FALSE).

Value

The QWAmetadata object with the $resources component updated.