Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brainx64 opened this issue Sep 17, 2024 · 0 comments
Open

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

brainx64 opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@brainx64
Copy link

brainx64 commented Sep 17, 2024

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"
)
@brainx64 brainx64 added the bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant