View source: R/validate_xltemplate.R
validate_xltemplate | R Documentation |
xlsx_cutter()
Validate an xlsx template file to use in xlsx_cutter()
validate_xltemplate(
template_file,
template_sheet = 1,
marker_open = "{{",
marker_close = "}}",
minimal = FALSE,
error = FALSE
)
template_file |
path to the template file to use as a model to parse the
xlsx files in |
template_sheet |
sheet id of the template file to use as a model to
parse the xlsx files in |
marker_open, marker_close |
character marker to mark the variables to
extract in the |
minimal |
Logical (default to |
error |
Logical (defaults to |
TRUE
if the template is valid, FALSE
otherwise
# Valid template
validate_xltemplate(
system.file("example", "timesheet_template.xlsx", package = "xlcutter")
)
# Invalid templates
validate_xltemplate(
system.file("example", "template_duped_vars.xlsx", package = "xlcutter")
)
validate_xltemplate(
system.file("example", "template_fluff.xlsx", package = "xlcutter"),
minimal = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.