Skip to contents

Environment variables, Configurations, and Global Options

using_config()
Detect whether a configuration is currently active
using_envvar()
Determine whether an environment variable is being used
using_option()
Determine whether a global option is being used

CPU Architecture

Determine the architecture of the machine being used

Operating Systems

Determine information about the computer’s operating system

using_os() using_linux() using_macos() using_solaris() using_windows()
Tests for operating systems
using_account()
Determine whether a given user account is being used

Containers

Detect whether code is running in a containerized environment

R, IDEs, and Programming Environment

Detect the R environment being used

using_r_version() using_latest_r_version() using_interactive_session()
R session information
using_rstudio() using_rstudio_jobs() using_rstudio_dark_theme() using_posit_connect()
RStudio environments
using_vscode()
Detect whether code is running in Visual Studio Code
using_conda()
Determine whether Conda environment is being used

Continuous Integration

Determine whether code is being run in a continuous integration environment

Network

Determine whether or not the machine is connected to the internet

online() using_host()
Checks related to networking

Development

Detect various development environments

on_bioconductor()
Detect Bioconductor
on_cran()
Detect CRAN
using_covr()
Detect covr
using_testthat()
Detect testthat

Misc

Additional checks

using_databricks()
Detect Databricks Runtime Environment
using_nix_shell()
Detect Nix Shell