close
Skip to content

capture.output() does not work in non-interactive mode #153

@gaborcsardi

Description

@gaborcsardi

We need to use stdout when there is an active sink, I suppose? I am not entirely sure. Reprex:

R -q -e 'capture.output(cli::cli_text("time: {100} year{?s}"))'
> capture.output(cli::cli_text("time: {100} year{?s}"))
time: 100 years
character(0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions