LNaddTag: Generate a Living Norway metadata tag Add a metadata HTML...

View source: R/LNTagFunctions.R

LNaddTagR Documentation

Generate a Living Norway metadata tag Add a metadata HTML tag. This function is designed to be run in RMarkdown documents. This function is not designed to be run directly by the users but serves as a utility functions for other HTML tag generation functions.

Description

Generate a Living Norway metadata tag Add a metadata HTML tag. This function is designed to be run in RMarkdown documents. This function is not designed to be run directly by the users but serves as a utility functions for other HTML tag generation functions.

Usage

LNaddTag(
  tagText,
  tagType,
  tagID = NA,
  parentID = NA,
  isHidden = FALSE,
  lang = NA,
  ...
)

Arguments

tagID

A character scalar containing the unique ID of the tag

parentID

A character scalar containing the unique ID of the parent of the tag (if there is a parent)

isHidden

A logical scalar determining whether the tag should appear in the rendered HTML text

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.

tagTxt

A character scalar containing the text to be enclosed in the tag

tagtype

A character scalar containing the name of the EML element that will be tagged

Value

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

Author(s)

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


LivingNorway/LivingNorwayR documentation built on Jan. 11, 2024, 5:07 a.m.