is_on_github_actions: Determines if the environment is GitHub Actions

View source: R/is_on_ci.R

is_on_github_actionsR Documentation

Determines if the environment is GitHub Actions

Description

Determines if the environment is GitHub Actions

Usage

is_on_github_actions()

Value

TRUE if run on GitHub Actions, FALSE otherwise

Note

It is possible to fake being on GitHub Actions, using:

“'r Sys.setenv(GITHUB_ACTIONS = "I fake being on GitHub Actions") is_on_github_actions() # Will be true “'

To undo this, do

“'r Sys.setenv(GITHUB_ACTIONS = "") is_on_github_actions() # Will be false “'

Author(s)

Richèl J.C. Bilderbeek

Examples

if (is_on_github_actions()) {
  message("Running on GitHub Actions")
}

netmhc2pan documentation built on Nov. 9, 2023, 1:08 a.m.