r-world-devs / shinyCohortBuilder

https://r-world-devs.github.io/shinyCohortBuilder/
Other
6 stars 0 forks source link

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

Open krystian8207 opened 8 months ago

krystian8207 commented 8 months ago
> 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