is_on_github_actions | R Documentation |
Determines if the environment is GitHub Actions
is_on_github_actions()
TRUE if run on GitHub Actions, FALSE otherwise
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 “'
Richèl J.C. Bilderbeek
if (is_on_github_actions()) {
message("Running on GitHub Actions")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.