validate_xltemplate {xlcutter} | R Documentation |
Validate an xlsx template file to use in xlsx_cutter()
Description
Validate an xlsx template file to use in xlsx_cutter()
Usage
validate_xltemplate(
template_file,
template_sheet = 1,
marker_open = "{{",
marker_close = "}}",
minimal = FALSE,
error = FALSE
)
Arguments
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 |
Value
TRUE
if the template is valid, FALSE
otherwise
Examples
# 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
)
[Package xlcutter version 0.1.1 Index]