Skip to content

Commit

Permalink
feat: remove repeated $
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Feb 29, 2024
1 parent 596d95c commit 91dfcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/format.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ check_formats <- function(.df, format, verbose) {

# check that any variables ending DT, DTM, TM have a format
if (identical(format_sas, "")) {
if (isTRUE(grepl("DT$|DTM$|TM$", colnames(.df)[i]))) {
if (isTRUE(grepl("(DT|DTM|TM)$", colnames(.df)[i]))) {
message <- glue(
"(xportr::xportr_format) {encode_vars(colnames(.df)[i])} is expected to have a format but does not."
)
Expand Down

0 comments on commit 91dfcd4

Please sign in to comment.