configure_file | R Documentation |
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.
configure_file(
source,
target = sub("[.]in$", "", source),
config = Sys.getenv(),
lhs = "@",
rhs = "@",
verbose = TRUE
)
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? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.