Learn R Programming

fz (version 2.0.0)

fz_install: Install the fz Python Package

Description

This function installs the fz Python package into a virtual environment or conda environment managed by reticulate.

Usage

fz_install(
  packages = fz_python_requirement(),
  method = "auto",
  conda = "auto",
  pip = TRUE,
  ...
)

Value

NULL (invisibly). Called for side effects.

Arguments

packages

Package specification passed to reticulate::py_install(). The default installs the funz-fz release series matching this R package (same major and minor version, e.g. "funz-fz>=2.0,<2.1" for R package 2.0.0). To track unreleased features, install the latest main branch directly from GitHub with "git+https://github.com/Funz/fz.git" and set options(fz.sync_python = FALSE) to silence the version check described in fz_available().

method

Installation method. Either "auto", "virtualenv", or "conda".

conda

Path to conda executable. Only used when method is "conda".

pip

Logical; use pip for installation? Default is TRUE.

...

Additional arguments passed to reticulate::py_install().

Examples

Run this code
if (FALSE) {
# Install fz in a virtual environment
fz_install()

# Install in a conda environment
fz_install(method = "conda")

# Track the latest main branch on GitHub (unreleased features)
fz_install(packages = "git+https://github.com/Funz/fz.git")
}

Run the code above in your browser using DataLab