These functions make it possible to group lines in the Github Actions log. Groups can not be nested at this point, see this issue.

octo_start_group(name)

octo_end_group()

Arguments

name

Name of the group, single line.

See also

Examples

Sys.setenv(GITHUB_ACTIONS = "TRUE")
octo_start_group("Print stuff")
#> Error in octo_start_group("Print stuff"): could not find function "octo_start_group"
print("Log other output")
#> [1] "Log other output"
octo_end_group()
#> ::endgroup::