install_causact_deps: Install causact's python dependencies like numpyro, arviz,...

View source: R/install_causact_deps.R

install_causact_depsR Documentation

Install causact's python dependencies like numpyro, arviz, and xarray.

Description

install_causact_deps() installs python, the numpyro and arviz packages, and their direct dependencies.

Usage

install_causact_deps()

Details

You may be prompted to download and install miniconda if reticulate did not find a non-system installation of python. Miniconda is the only supported installation method for users, as it ensures that the R python installation is isolated from other python installations. All python packages will by default be installed into a self-contained conda or venv environment named "r-causact". Note that "conda" is the only supported method for install.

If you initially declined the miniconda installation prompt, you can later manually install miniconda by running reticulate::install_miniconda().

If you manually configure a python environment with the required dependencies, you can tell R to use it by pointing reticulate at it, commonly by setting an environment variable:

Sys.setenv("RETICULATE_PYTHON" = "~/path/to/python-env/bin/python")

causact documentation built on June 24, 2024, 5:17 p.m.