Skip to contents

Add a Living Norway metadata tag corresponding to the dataset EML element

Usage

LNdataset(
  tagText,
  tagID = NA,
  parentID = NA,
  isHidden = FALSE,
  lang = NA,
  sep = " ",
  ...
)

Arguments

tagText

A character scalar containing the text to encolse in the tag

tagID

A character scalar containing a unique identifier for the tag element. If the parameter is NA then a UUID will be generated

parentID

A character scalar containing the ID for the parent tag (if there is one). NA denotes that there is no parent for the tag

isHidden

A logical scalar that, if TRUE, denotes that the text should be hidden when rendered

lang

A character scalar defining the language attribute to set for the tag. See https://www.w3.org/International/articles/language-tags/the W3C guide to language tags for the best format to use for this attribute. A value NA indicates that no langauge attribute will be set.

sep

A character scalar providing the delimiter to use between the child tags

...

A series of parameters defining the child tags to generate and the parameters of the generation functions

Value

A character scalar containing the rendered output including any HTML tags if a HTML document is being knitted

Author

Joseph D. Chipperfield, joechip90@googlemail.com; Matthew Grainger, matthew.grainger@nina.no