R/use_github_ci.R

Defines functions use_ghactions

Documented in use_ghactions

# use_ghactions-----------------------------------------------------------------

#' Adds default .github/workflows/
#' @return writes .github/workflows/ and adds it .Rbuildignore
#' @importFrom fs dir_copy
#' @export

use_ghactions <- function()
{

fs::dir_copy(path = system.file("templates/ci_github-actions/",
                                package = "kwb.pkgbuild"),
              new_path = ".github/workflows",
              overwrite = TRUE)

write_to_rbuildignore(ignore_pattern = "^\\.github$")
}
KWB-R/kwb.pkgbuild documentation built on Oct. 25, 2022, 2:17 a.m.