Learn R Programming

rpymat (version 0.1.7)

rpymat-python-main: 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

Arguments

Value

The 'Python' main process as a module

Format

An object of class NULL of length 0.

Examples

Run this code

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

}

Run the code above in your browser using DataLab