lookup_tokens: Replace tokens with vlues from a dmdScheme

View source: R/lookup_tokens.R

lookup_tokensR Documentation

Replace tokens with vlues from a dmdScheme

Description

For a detailed explanation of these tokens see the vignette Create and Customize the index Template.

Usage

lookup_tokens(tokens, scheme, author = "")

Arguments

tokens

a character vector containing tokens. These can be enclosed in %%TOKEN%% or not.

scheme

a dmdSchemeSet object

author

the author of the index document

Value

a list of the length of the input vector tokens containing the objects returned by the tokens. Null if the tokens contains invalid values.

Examples

lookup_tokens(
  tokens = c(
      "%%Treatments.*.2%%",
     "%%Experiment.*.*%%",
     "Measurement.method.3"
   ),
  scheme = dmdScheme_example(),
)

dmdScheme documentation built on Aug. 22, 2022, 9:06 a.m.