replace_from_template: replace values from a template file

View source: R/replace_from_template.R

replace_from_templateR Documentation

replace values from a template file

Description

replace values from a template file

Usage

replace_from_template(
  file,
  patterns,
  replacement_df,
  output_dir = NULL,
  file_name = NULL,
  ...
)

Arguments

file

template file

patterns

patterns to match

replacement_df

dataframe of replacements

output_dir

set directory if not current directory

file_name

column in replacement containing requested output file name

...

additional arguments for readLines

Details

the pattern will first check for names, and if matching names in replacement df will follow, however if no names are detected, then will match by position


metrumresearchgroup/PKPDmisc documentation built on Oct. 21, 2022, 9:41 a.m.