set_methods_md: Create methods node from .md file

View source: R/utilities.R

set_methods_mdR Documentation

Create methods node from .md file

Description

Create methods node from .md file

Usage

set_methods_md(methods_file)

Arguments

methods_file

(character) Full path to methods.md file

Details

Text and LaTeX equations in methods_file are parsed into /eml/dataset/methodStep/description/markdown nodes. A second step applied by fix_methods() on the resultant EML file corrects the node names. Without this second step, the EML file will fail on schema validation.

Value

(list) EML methodStep node

Note

LaTex equations must be wrapped in $$ (e.g. $$<my_equation>$$), otherwise they won't be parsed correctly from the text.


EDIorg/emlAssemblyLine documentation built on Nov. 4, 2022, 11:59 p.m.