This function takes a config.yml
file as input and generates a config.template.yml
file by replacing values with specific placeholders like "<APP_NAME>"
, "<API_KEY>"
, etc.,
and ensuring that the placeholders are correctly quoted in the output YAML.
Usage
create_cfg_template(input_file, output_file = NULL)
Arguments
- input_file
The path to the input config.yml
file.
- output_file
The path where the generated config.template.yml
file should be saved.
Value
None. The function outputs the template file to the specified location.
Examples
generate_config_template("inst/config/config.yml", "inst/config/config.template.yml")
#> Error in generate_config_template("inst/config/config.yml", "inst/config/config.template.yml"): could not find function "generate_config_template"