Skip to content

Commit

Permalink
Updating warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanaharris22 committed Oct 11, 2023
1 parent 85871b1 commit 9f61f8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions R/date_cut.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ date_cut <- function(dataset_sdtm,
msg = "Duplicate patients in the DCUT (dataset_cut) dataset, please update."
)
ifelse(any(is.na(mutate(dataset_cut, !!cut_var))) == TRUE,
print("At least one patient with missing datacut date (cut_var) in the DCUT
(dataset_cut) dataset, all records for this/these patient(s) will be kept."), NA
print("At least 1 patient with missing datacut date, all records will be kept."), NA
)

dcut <- dataset_cut %>%
Expand Down
3 changes: 1 addition & 2 deletions R/special_dm_cut.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ special_dm_cut <- function(dataset_dm,
msg = "Duplicate patients in the DCUT (dataset_cut) dataset, please update."
)
ifelse(any(is.na(mutate(dataset_cut, !!cut_var))) == TRUE,
print("At least one patient with missing datacut date (cut_var) in the DCUT
(dataset_cut) dataset, all records for this/these patient(s) will be kept."), NA
print("At least 1 patient with missing datacut date, all records will be kept."), NA
)
assert_data_frame(dataset_dm,
required_vars = exprs(USUBJID, DTHDTC)
Expand Down

0 comments on commit 9f61f8d

Please sign in to comment.