octocat | R Documentation |
Prints a string
if on GitHub, detected via env var GITHUB_ACTIONS == 'true'
.
octocat(string)
string |
A character vector of length 1. This string will be terminated
with |
string
invisibly
Sys.setenv(GITHUB_ACTIONS = "true")
octocat("::error ::Something is wrong")
Sys.unsetenv("GITHUB_ACTIONS")
octocat("::error ::Something is wrong")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.