Skip to contents

Installs required Python packages (earthengine-api and numpy) using virtualenv, conda, or system pip via the reticulate package.

[Experimental]

Usage

l4h_install(pip = TRUE, system = FALSE, force = FALSE, ...)

Arguments

pip

Logical. If TRUE (default), uses pip for installation. Automatically set to FALSE if a method is specified via ....

system

Logical. If TRUE, uses the system Python and pip via a system call. Defaults to FALSE.

force

Logical. If TRUE, forces reinstallation of packages using --force-reinstall. Defaults to FALSE.

...

Additional arguments passed to py_install, such as:

  • method: Installation method ("auto", "virtualenv", "conda")

  • envname: Python environment name (default: "r-land4health")

Value

Invisibly returns NULL. This function is called for its side effects.

Examples

if (FALSE) { # \dontrun{
# Basic installation
l4h_install()

# Force reinstallation
l4h_install(force = TRUE)

# Use a conda environment
l4h_install(method = "conda")
} # }