## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set(collapse = TRUE, comment = "#>") library(rzig) ## ----fields------------------------------------------------------------------- path <- file.path(tempdir(), "distpkg") create_rzig_package(path, tests = FALSE) read.dcf(file.path(path, "DESCRIPTION"), fields = "SystemRequirements") ## ----find--------------------------------------------------------------------- find_zig(required = FALSE) ## ----download----------------------------------------------------------------- cat("Config/rzig/download-zig: true\n", file = file.path(path, "DESCRIPTION"), append = TRUE) status <- rzig_status(path) status[status$step == "DESCRIPTION", ] ## ----ci----------------------------------------------------------------------- use_rzig_ci(path) file.exists(file.path(path, ".github", "workflows", "rzig-check.yaml")) ## ----cleanup, include = FALSE------------------------------------------------- unlink(path, recursive = TRUE)