is_on_ci: Determines if the environment is a continuous integration...

View source: R/is_on_ci.R

is_on_ciR Documentation

Determines if the environment is a continuous integration service

Description

Determines if the environment is a continuous integration service

Usage

is_on_ci()

Value

TRUE if run on AppVeyor or Travis CI, FALSE otherwise

Note

It is possible to fake being on continuous integration service, in this case GitHub Actions, using:

Sys.setenv(GITHUB_ACTIONS = "I fake being on GitHub Actions")
is_on_ci() # Will be true

To undo this, do

Sys.setenv(GITHUB_ACTIONS = "")
is_on_ci() # Will be false

Author(s)

Richèl J.C. Bilderbeek

Examples

is_on_ci()

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.