Learn R Programming

⚠️There's a newer version (1.38.0) of this package.Take me there.

reticulate (version 1.12)

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

274,079

Version

1.12

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Kevin Ushey

Last Published

April 12th, 2019

Functions in reticulate (1.12)

py_config

Python configuration
py_func

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

Unique identifer for Python object
py_help

Documentation for Python Objects
repl_python

Run a Python REPL
py_config_error_message

Build Python configuration error message
register_suppress_warnings_handler

Register a handler for calls to py_suppress_warnings
py_call

Call a Python callable object
dict

Create Python dictionary
py_function_wrapper

Scaffold R wrappers for Python functions
py_capture_output

Capture and return Python output
py_get_attr

Get an attribute of a Python object
py_len

Length of Python object
py_main_thread_func

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

Discover the version of Python to use with reticulate.
py_del_item

Delete / remove an item from a Python object
py_install

Install Python packages
py_is_null_xptr

Check if a Python object is a null externalptr
py_get_item

Get an item from a Python object
py_suppress_warnings

Suppress Python warnings for an expression
py_has_attr

Check if a Python object has an attribute
py_set_attr

Set an attribute of a Python object
py_run

Run Python code
py_list_attributes

List all attributes of a Python object
py_function_custom_scaffold

Custom Scaffolding of R Wrappers for Python Functions
py_iterator

Create a Python iterator from an R function
py_set_item

Set an item for a Python object
py_module_available

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

R wrapper for Python objects
register_help_topics

Register help topics
py_save_object

Save and load Python objects with pickle
register_module_help_handler

Register a help handler for a root Python module
py_last_error

Get or clear the last Python error encountered
py_set_seed

Set Python and NumPy random seeds
py_str

An S3 method for getting the string representation of a Python object
py_unicode

Convert to Python Unicode Object
virtualenv-tools

Interface to Python Virtual Environments
r-py-conversion

Convert between Python and R objects
py_versions_windows

Discover versions of Python installed on a Windows system
reticulate

R Interface to Python
tuple

Create Python tuple
source_python

Read and evaluate a Python script
use_python

Configure which version of Python to use
with-as-operator

Create local alias for objects in with statements.
register_class_filter

Register a filter for class names
with.python.builtin.object

Evaluate an expression within a context.
array_reshape

Reshape an Array
np_array

NumPy array
iterate

Traverse a Python iterator or generator
eng_python

A reticulate Engine for Knitr
as.character.python.builtin.bytes

Convert Python bytes to an R character vector
import

Import a Python module
conda-tools

Interface to conda
py

Interact with the Python Main Module
py_available

Check if Python is available on this system