Develop a warning message for malformed Excel region names
Source:R/excel.R
check_named_region_violations.Rd
Well-formed Excel region names are important for named regions
in the Excel workbooks created by write_ecc_to_excel()
.
This function warns if the region names contain illegal characters,
start with an illegal character,
resemble a cell reference, or
are too long.
Examples
# No warning
check_named_region_violations(c("test1", "test2"))
if (FALSE) { # \dontrun{
# Warnings
# Illegal character
check_named_region_violations("\\")
check_named_region_violations("a\\")
# Starts with illegal character
check_named_region_violations(" ")
# Resembles cell reference
check_named_region_violations("B12")
# Too long
check_named_region_violations(strrep("x", 256))
} # }