populate_config() starts with config file and replaces the template values with project-specific values.

populate_config(path_in, project_name, path_out = path_in)

Arguments

path_in

character of the config file to populate. Required.

project_name

character of the new project. Required.

path_out

character of the config file to populate. Required.

Author

Will Beasley

Examples

library(pluripotent)

if (FALSE) {
url_config <- "https://github.com/OuhscBbmc/cdw-skeleton-1/blob/main/config.yml?raw=true"
path_in    <- "~/config.yml"
path_out   <- "~/config-out.yml"
utils::download.file(url=url_config, destfile=path_in)
populate_config(
  path_in        = path_in,
  project_name   = "thumann-awesomeness-1",
  path_out       = path_out
)
}