Description Usage Arguments Value See Also Examples
Retrieves current CI build number.
1 | ci_adapter_get_version(ci_adapter)
|
ci_adapter |
ci adapter object |
build number reported by CI. (type: character).
Other in extending RSuite with CI adapter: ci_adapter_create_base
,
ci_adapter_is_building
1 2 3 4 5 6 7 8 9 10 11 12 | # create you own CI adapter
ci_adapter_create_own <- function() {
result <- ci_adapter_create_base("Own")
class(result) <- c("ci_adapter_own", class(result))
return(result)
}
#' @export
ci_adapter_get_version.ci_adapter_own <- function(ci_adapter) {
# ... detect if build triggered by CI is currently running ...
return("0.0")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.