rpymat-python-main: Get 'Python' main process environment

rpymat-python-mainR Documentation

Get 'Python' main process environment

Description

py automatically converts 'Python' objects to R objects. import_main does not convert by default; see 'Examples' for details.

Usage

py

Format

An object of class NULL of length 0.

Value

The 'Python' main process as a module

Examples


if(interactive() && dir.exists(env_path())) {

py_no_convert <- rpymat::import_main(convert = FALSE)

py$a <- matrix(seq_len(16), 4)

py_no_convert$a

py$a

}


rpymat documentation built on Aug. 22, 2023, 9:12 a.m.