Skip to contents

This function creates or activates a Python virtual environment and optionally installs the copernicusmarine Python module. It does not store credentials.

Usage

cm_setup(
  env = "oceancube-copernicus",
  install = TRUE,
  module = "copernicusmarine",
  verbose = TRUE
)

Arguments

env

Virtual environment name.

install

Logical. Install copernicusmarine if missing?

module

Python module name.

verbose

Logical. Print progress messages?

Value

Invisibly returns the imported Python module when available.

Lifecycle

Deprecated as of oceancube 0.3.0. Manage the provider client and its Python environment outside oceancube, then open downloaded local NetCDF files with cube_open().