Learn R Programming

reticulate (version 1.38.0)

py_capture_output: Capture and return Python output

Description

Capture and return Python output

Usage

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

Value

Character vector with output

Arguments

expr

Expression to capture stdout for

type

Streams to capture (defaults to both stdout and stderr)