Open
Description
What happened?
I can see that filter
argument of create_dcut
function is marked as optional:
filter <- assert_filter_cond(enexpr(filter), optional = TRUE)
but it doesn't seem to be handled as optional further in the code that leads to an error:
> dcut <- create_dcut(
+ dataset_ds = source_data$dm,
+ ds_date_var = RFICDTC,
+ #filter = TRUE,
+ cut_date = cut_date,
+ cut_description = "Clinical Cutoff Date"
+ )
Error in filter(., DCUTDTM >= DCUT_TEMP_DATE) :
argument "filter" is missing, with no default
Session Information
No response
Reproducible Example
dcut <- create_dcut(
dataset_ds = source_data$dm,
ds_date_var = RFICDTC,
#filter = TRUE,
cut_date = cut_date,
cut_description = "Clinical Cutoff Date"
)