Software
reticulate

reticulate

R Interface to Python

R

The reticulate package provides comprehensive tools for interoperability between Python and R, allowing you to call Python code from R in multiple ways including R Markdown, importing modules, sourcing scripts, and interactive Python consoles. It embeds a Python session within your R session, enabling seamless integration of both languages in a single workflow.

The package handles automatic conversion between R and Python data types, including translation between R data frames and Pandas DataFrames, R matrices and NumPy arrays, and other common objects. It supports flexible Python version management through virtual environments and Conda environments. This makes it valuable for developers and data scientists who work in both languages or collaborate on mixed-language teams, eliminating the need to choose between R and Python tools.

Contributors

Resources using reticulate