Skip to content

`recticulate` setup

Xavier Escribà Montagut edited this page Feb 27, 2023 · 4 revisions

User guide tested on a fresh Ubuntu 22.04.1 LTS install

First we have to install the reticulate package in order to call Python functions from R

install.packages("reticulate")

We install the miniconda environment manager

reticulate::install_miniconda()

Install the kaleido package (and dependencies) in order to export plots. This will be installed on the r-reticulate environment, which is loaded on the global.R

reticulate::conda_install(envname = "r-reticulate", packages = "plotly")

reticulate::conda_install(envname = "r-reticulate", packages = "python-kaleido")