s1 <- git2r::status()
stopifnot(
vapply(s1, length, integer(1L)) == 0L
)
usethis::use_mit_license()
unlink(".github", recursive = TRUE, force = TRUE)
usethis::use_github_action_check_release()
lines <- readLines(".github/workflows/R-CMD-check.yaml")
lines <- gsub("ubuntu", "windows", lines)
writeLines(lines, ".github/workflows/R-CMD-check.yaml")
s2 <- git2r::status()
if (!identical(s1, s2)) {
git2r::add(path = ".")
git2r::commit(message = "build: run dev/01_license_and_ci.R")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.