replace.token: To replace tokens in documents (e.g. calibration certificate...

View source: R/replace-token-function.R

replace.tokenR Documentation

To replace tokens in documents (e.g. calibration certificate templates) with a given string.

Description

To replace tokens in in documents (e.g. calibration certificate templates) with valid input - typically generated by the software. The modified text is for Latex typesetting. Sample call:

txt <- "jsjdksfkd TOKEN.CERTDATE jsfhjhfjkhjfadsk safjsfkf"

txt <- replace.token(txt,"TOKEN.CERTDATE","December 24, 1999")

Usage

txt <- replace.token(txt,"TOKEN.CERTDATE","December 24, 1999")

Arguments

TOKEN.ID

(e.g. "TOKEN.XYZ").

Replace.auto

(e.g. "").

Replace.manual

as an alternative (set to NULL).

Value

text (typically an entire document with many lines).

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Nov. 30, 2024, 11:06 p.m.