Learn R Programming

reticulate (version 1.38.0)

Interface to 'Python'

Description

Interface to 'Python' modules, classes, and functions. When calling into 'Python', R data types are automatically converted to their equivalent 'Python' types. When values are returned from 'Python' to R they are converted back to R types. Compatible with all versions of 'Python' >= 2.7.

Copy Link

Version

Install

install.packages('reticulate')

Monthly Downloads

259,667

Version

1.38.0

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Last Published

June 19th, 2024

Functions in reticulate (1.38.0)

is_py_object

Check if x is a Python object
miniconda_update

Update Miniconda
miniconda_uninstall

Remove Miniconda
py_config

Python configuration
as_iterator

Traverse a Python iterator or generator
py_capture_output

Capture and return Python output
py_eval

Evaluate a Python Expression
py_exe

Python executable
py_len

Length of Python object
py_clear_last_error

Get or (re)set the last Python error encountered.
py_bool

Python Truthiness
py_module_available

Check if a Python module is available on this system.
py_main_thread_func

Create a Python function that will always be called on the main thread
py_set_attr

Set an attribute of a Python object
miniconda_path

Path to Miniconda
py_func

Wrap an R function in a Python function with the same signature.
py_help

Documentation for Python Objects
py_call

Call a Python callable object
py_save_object

Save and Load Python Objects
py_unicode

Convert to Python Unicode Object
py_help_handler

Provide help for Python objects
py_config_error_message

Build Python configuration error message
tuple

Create Python tuple
source_python

Read and evaluate a Python script
py

Interact with the Python Main Module
py_list_attributes

List all attributes of a Python object
py_list_packages

List installed Python packages
py_get_attr

Get an attribute of a Python object
py_function_wrapper

Scaffold R wrappers for Python functions
py_version

Python version
register_class_filter

Register a filter for class names
with-as-operator

Create local alias for objects in with statements.
with.python.builtin.object

Evaluate an expression within a context.
register_help_topics

Register help topics
py_set_seed

Set Python and NumPy random seeds
virtualenv-tools

Interface to Python Virtual Environments
py_repr

String representation of a python object.
repl_python

Run a Python REPL
py_suppress_warnings

Suppress Python warnings for an expression
py_del_attr

Delete an attribute of a Python object
use_python

Use Python
reticulate

R Interface to Python
py_function_custom_scaffold

Custom Scaffolding of R Wrappers for Python Functions
py_is_null_xptr

Check if a Python object is a null externalptr
py_run

Run Python code
py_none

The Python None object
py_iterator

Create a Python iterator from an R function
py_available

Check if Python is available on this system
py_to_r_wrapper

R wrapper for Python objects
py_get_item

Get/Set/Delete an item from a Python object
py_versions_windows

Discover versions of Python installed on a Windows system
r-py-conversion

Convert between Python and R objects
py_has_attr

Check if a Python object has an attribute
py_id

Unique identifer for Python object
py_install

Install Python packages
register_suppress_warnings_handler

Register a handler for calls to py_suppress_warnings
register_module_help_handler

Register a help handler for a root Python module
array_reshape

Reshape an Array
install_miniconda

Install Miniconda
configure_environment

Configure a Python Environment
==.python.builtin.object

S3 Ops Methods for Python Objects
as.character.python.builtin.bytes

Convert Python bytes to an R character vector
import

Import a Python module
PyClass

Create a python class
conda-tools

Conda Tools
eng_python

A reticulate Engine for Knitr
dict

Create Python dictionary
py_discover_config

Discover the version of Python to use with reticulate.
install_python

Install Python
miniconda-params

miniconda-params
ipython

IPython console
py_ellipsis

The builtin constant Ellipsis
nameOfClass.python.builtin.type

nameOfClass() for Python objects
np_array

NumPy array