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

Updating non-standard args with update_filter makes get_params returning invalid values #50

Open
krystian8207 opened this issue Mar 5, 2024 · 0 comments

Comments

@krystian8207
Copy link
Member

> library(cohortBuilder)
> librarian_source <- set_source(
+   as.tblist(librarian)
+ )
> 
> coh <- librarian_source %>% 
+   cohort(
+     filter(
+       "discrete", id = "author", dataset = "books", 
+       variable = "author", value = "Dan Brown", test = 1
+     )
+   )
> author_filter <- coh$get_filter(step_id = 1, filter_id = "author")
> author_filter$get_params("test")
[1] 1
> coh$update_filter(1, "author", test = 10)
> author_filter$get_params("test")
[1] 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant