Detect if R is running within a Github Action.

on_github()

Value

TRUE if on Github. FALSE otherwise.

Details

Uses GITHUB_ACTIONS envvar`.

Examples

on_github()
#> Error in on_github(): could not find function "on_github"