configure_file: Configure a File

View source: R/configure.R

configure_fileR Documentation

Configure a File

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

configure_file(
  source,
  target = sub("[.]in$", "", source),
  config = Sys.getenv(),
  lhs = "@",
  rhs = "@",
  verbose = TRUE
)

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?


jalgos/jsroot documentation built on Jan. 27, 2025, 3:40 p.m.