Skip to content

DoparParam: Disable capturing of stdout? #276

@HenrikBengtsson

Description

@HenrikBengtsson

Is it possible to disable capturing of stdout? Specifically, is there an option/argument I can pass such that the following output does not appear:

> library(BiocParallel)
> y <- bplapply(1:2, print, BPPARAM = BiocParallel::DoparParam())
[1] 1
[1] 2

?

I'm aware of capture.output() etc, but I want to prevent it from being captured in the first place.

I understand that .bpworker_EXEC() takes argument sink.sout;

BiocParallel/R/worker.R

Lines 297 to 298 in 9e2db5d

.bpworker_EXEC <-
function(msg, sink.sout = TRUE)

but it looks like DoparParam does not allow me to pass that argument:

value <- .bpworker_EXEC(task)

In contrast, it looks like SerialParam supports it:

value <- .bpworker_EXEC(msg, bplog(backend$BPPARAM))

If not supported right now, would you consider to add way to disable it?

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