configure_file: Configure a File

Description Usage Arguments See Also

View source: R/utils.R

Description

Configure a file, replacing (by default) any instances of @-delimited variables, e.g. @VAR@, with the value of the variable called VAR in the associated config environment.

Usage

1
2
3
4
5
6
7
8
configure_file(
  source,
  target = sub("[.]in$", "", source),
  config = configure_database(),
  lhs = "@",
  rhs = "@",
  verbose = configure_verbose()
)

Arguments

source

The file to be configured.

target

The file to be generated.

config

The configuration database.

lhs

The left-hand side marker; defaults to @.

rhs

The right-hand side marker; defaults to @.

verbose

Boolean; report files as they are configured?

See Also

Other configure: configure_directory()


kevinushey/configure documentation built on March 26, 2021, 12:21 p.m.