read_tpl: Read template files from the cfg_template folder in built

Description Usage Arguments Value Author(s) Examples

View source: R/read_tpl.R

Description

The XN5 cfg_built folder contains template files to e.g. cfg.ini, leachn.ini, and daisy_miner_nitrogen.ini files. With this function, these files are read and made use of. As such, all comment lines in the template files (rows starting with #) are deleted.

Usage

1
read_tpl(path = "./cfg_template", file.name = NA)

Arguments

path

a character specifying the path to the template file location. Default to "./cfg_template".

file.name

a character specifying the template file name.

Value

A named list with list element names the variable names (left of the =-sign), and the elements being the template elements to the right of the =-sign. These can be replaced.

Author(s)

Tobias KD Weber, tobias.weber@uni-hohenheim.de

Examples

1
## No example possible/sensble

tkdweber/XN5setup documentation built on July 4, 2021, 7:34 a.m.