with.python.builtin.object: Evaluate an expression within a context.

Description Usage Arguments

View source: R/python.R

Description

The with method for objects of type python.builtin.object implements the context manager protocol used by the Python with statement. The passed object must implement the context manager (__enter__ and __exit__ methods.

Usage

1
2
## S3 method for class 'python.builtin.object'
with(data, expr, as = NULL, ...)

Arguments

data

Context to enter and exit

expr

Expression to evaluate within the context

as

Name of variable to assign context to for the duration of the expression's evaluation (optional).

...

Unused


Mormukut11/R-interface-to-Python documentation built on May 21, 2019, 9:36 a.m.