hello!
I was wondering if it would be possible to modify this script to accomodate filtering tables in databases that we lazy load using {dbplyr}?
I have just spend a couple days trying to decipher the code in shinyDataFilter. I made some progress (mostly involving replacing nrows() with tally() and , but I dont think it is possible in its current form:
My understanding is that vector_module_return()$mask() returns a vector of TRUE/FALSE to tell us which row numbers to keep. Thing is, SQL doesnt have a concept of row number as order of rows is always random.
I was hoping to replace the line
out_data <- subset(data(), vector_module_return()$mask()) in shiny_data_filter_item with some code that would apply the code in vector_module_return()$code() directly to data(), but I'm out of my skill level.
hello!
I was wondering if it would be possible to modify this script to accomodate filtering tables in databases that we lazy load using {dbplyr}?
I have just spend a couple days trying to decipher the code in
shinyDataFilter. I made some progress (mostly involving replacing nrows() with tally() and , but I dont think it is possible in its current form:My understanding is that vector_module_return()$mask() returns a vector of TRUE/FALSE to tell us which row numbers to keep. Thing is, SQL doesnt have a concept of row number as order of rows is always random.
I was hoping to replace the line
out_data <- subset(data(), vector_module_return()$mask())inshiny_data_filter_itemwith some code that would apply the code invector_module_return()$code()directly to data(), but I'm out of my skill level.