Prints a string
if on Github, detected via env var GITHUB_ACTIONS == 'true'
.
octocat(string)
A character vector of length 1. This string will be terminated
with last
and printed with a new line.
string
invisibly
Sys.setenv(GITHUB_ACTIONS = "true")
octocat("::error ::Something is wrong")
#> ::error ::Something is wrong
Sys.unsetenv("GITHUB_ACTIONS")
octocat("::error ::Something is wrong")