R: Capture and return Python output

py_capture_output {reticulate} | R Documentation

## Capture and return Python output

### Description

Capture and return Python output

### Usage

    py_capture_output(expr, type = c("stdout", "stderr"))

### Arguments

`expr` | Expression to capture stdout for
`type` | Streams to capture (defaults to both stdout and stderr)

### Value

Character vector with output

[Package reticulate version 1.23 Index]