Get a vector of template synIDs from either a list or from the config.yml file.
get_template_synIDs(templates = get_golem_config("templates"))
templates | Named or unnamed list of template synIDs. Defaults to
|
---|
A vector of synIDs.
if (FALSE) { named_list <- dat1 <- list( template1 = "syn111111", template2 = "syn222222", template_set = list( template3 = "syn333333", template4 = "syn444444" ) ) get_template_synIDs(templates = named_list) # config.yml example # Write config file; this has fake synIDs and will not function config <- list( default = list( templates = list( template1 = "syn222222", template2 = "syn3333333" ) ) ) yaml::write_yaml(config, "./config.yml") get_template_synIDs() }