Skip to content

(feature request) #31

@SimonCoulombe

Description

@SimonCoulombe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions