Skip to content

Bug: filter argument of create_dcut() is not optional #218

Open
@brainx64

Description

@brainx64

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"
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions