Skip to content

cli messages are always printed at the end of execution #128

Description

@VasLem

Describe the bug
Also referenced here . The cli package messages are not relayed when called within the future.apply context. This is even the case when no parallelism is used.

Reproduce example
The following waits for 10 seconds and prints hihihihihihihihihihi

future::plan(future::sequential)
ret <- future.apply::future_lapply(X = seq(10), future.stdout=NA,
                                    FUN=function(x) {
                                        cli::cli_inform('hi')
                                        Sys.sleep(1)
                                    })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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