show_collection_def: Show the definition of a collection

View source: R/collection_members.R

show_collection_defR Documentation

Show the definition of a collection

Description

This function prints details regarding a collection: title, description and arguments information. These arguments are those that can be used to document collection members within an MDB using the add_collection_member() function.

Usage

show_collection_def(collection, silent = FALSE)

Arguments

collection

a json string with the collection definition as returned by get_local_collection()

silent

a logical indicating if the definition should be written (TRUE by default) or not.

Value

A list with:

  • collection title

  • collection description

  • a list of arguments for defining collection members as a list of elements with:

    • the type of the argument element

    • allowed values if any

Examples

get_local_collection("BE") %>% show_collection_def()


TKCat documentation built on Feb. 16, 2023, 10:51 p.m.