R: Run Python code

py_run {reticulate} | R Documentation

## Run Python code

### Description

Execute code within the the `__main__` Python module.

### Usage

    py_run_string(code, convert = TRUE)

    py_run_file(file, convert = TRUE)

### Arguments

`code` | Code to execute
`convert` | `TRUE` to automatically convert Python objects to their R equivalent. If you pass `FALSE` you can do manual conversion using the `py_to_r()` function.
`file` | File to execute

### Value

Reference to `__main__` Python module.

[Package reticulate version 0.7 Index]