Builds a single krt_resource: a flat, present-only record describing one
research resource. Identifier fields are stored separately by type
(catalog_number, rrid, doi, ...); they are only combined into a
compound identifier string at export time.
Usage
new_resource(
resource_type,
display_name = NULL,
...,
.id = NULL,
.validate = TRUE
)
is_resource(x)Arguments
- resource_type
One of
krt_resource_types().- display_name
The resource name as it appears in the manuscript.
- ...
Additional named fields (see
all_fields()for the vocabulary), for examplevendor,catalog_number,rrid,doi,new_or_reuse,notes.- .id
Optional explicit resource id; generated from content if omitted.
- .validate
If
TRUE(default), checkresource_typeagainst the controlled vocabulary and warn about unknown fields.- x
An object to test.
