Skip to content

Commit

Permalink
#164 - updates due to spelling, lintr, styler CI/CD errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sophie-gem committed Feb 18, 2024
1 parent 408ac9b commit d3b9434
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/format.R
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ xportr_format <- function(.df,

# check if the format is either one of the expected formats or follows the regular expression for w.d format
if (
!(format_sas %in% toupper(expected_formats)) &&
(stringr::str_detect(format_sas, pattern = format_regex) == FALSE)) {
!(format_sas %in% toupper(expected_formats)) &&
(stringr::str_detect(format_sas, pattern = format_regex) == FALSE)
) {
message <- glue(
"(xportr::xportr_format)",
" Check format {encode_vars(format_sas)} for variable {encode_vars(colnames(.df)[i])}",
Expand Down
18 changes: 18 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,24 @@ AE
Atorus
BMI
CDISC
CDSIC
Codelist
Completers
DATETIMEw
DATEw
DAw
DCREASCD
DDMMYYw
DM
DNw
DTw
DXw
GSK
HHMM
JPT
LXw
LZw
MMDDYYw
MMSE
ORCID
PHUSE
Expand All @@ -21,11 +33,17 @@ SASformat
SDSP
SDTM
Standardisation
TIMEw
TMw
TRTDUR
TXw
TZw
Trt
Vignesh
Vis
WEEKDATEw
XPT
YYMMDDw
acrf
adrg
bootswatch
Expand Down

0 comments on commit d3b9434

Please sign in to comment.