Skip to content

Unhandled promise error: quo must be a quosure #82

@gdeoli

Description

@gdeoli

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
 })

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