Skip to contents

Identifies whether we're running on Colab, in a container, on a cloud GPU instance, or locally. Used by install_cuplyr() to apply environment-specific fixes (e.g. CUDA stub disabling on Colab).

Usage

detect_environment(override = Sys.getenv("CUPLYR_ENV"))

Arguments

override

Explicit override, e.g. from CUPLYR_ENV env var.

Value

One of "local", "colab", "container", "cloud_gpu".