Skip to contents

Superseded by multimod::mm_setup_python(), which owns the one conda environment shared by energyRt and multimod. This forwards to it and will be removed.

Usage

en_install_python_deps(
  env = "multimod",
  packages = NULL,
  solver = NULL,
  channel = NULL,
  use_conda = NULL
)

Arguments

env

character. Forwarded as env_name.

packages

character vector of Python packages to install.

solver, channel, use_conda

Ignored, with a warning when set.

Value

NULL, invisibly. Verify with en_check_pyomo().

Details

solver, channel and use_conda are no longer honoured: the replacement installs with pip inside a conda environment, so it cannot supply the CBC binary. Install a shell solver separately if you still need one; highspy is part of the default package set.

Examples

if (FALSE) { # \dontrun{
# create (or top up) the python environment the Pyomo backend uses
en_install_python_deps()

# a named environment and an explicit solver
en_install_python_deps(env = "energyRt", solver = "highs")
} # }