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

Unhandled promise error: quo must be a quosure #82

Open
gdeoli opened this issue Mar 13, 2022 · 0 comments
Open

Unhandled promise error: quo must be a quosure #82

gdeoli opened this issue Mar 13, 2022 · 0 comments

Comments

@gdeoli
Copy link

gdeoli commented Mar 13, 2022

Hi,

I'm trying to handle an expression within future_promise, but I'm getting this Unhandled promise error: quo must be a quosure error. Could anyone explain why this message is appearing and whether there is a way to rewrite the following code, to get the mutate statement within the future_promise function?

fraserData <- reactiveValues(fraserDT = NULL, visibility = FALSE)
foo <- reactive({
   path <- MyPath()
   future_promise({ read_tsv(path) %>%
     mutate(significantDelta = case_when(
      padjust < pValueCutoff & abs(deltaPsi) >= deltaPsiCutoff ~ "p-value and delta",
      padjust < pValueCutoff & abs(deltaPsi) < deltaPsiCutoff ~ "p-value",
      padjust >= pValueCutoff & abs(deltaPsi) >= deltaPsiCutoff ~ "delta",
      padjust >= pValueCutoff ~ "NS"
    ))}) %>% then(function(value) {
            fraserData$fraserDT <<- value
            fraserData$visibility <<- TRUE
           })
NULL
 })
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