| Title: | Opinionated R Package Quickstart |
|---|---|
| Description: | Bootstrap new R packages with strongly opinionated defaults. Creates the package scaffold, wires up tests, README and NEWS, configures GitHub Actions and Dependabot, adds Air/Jarl setup, and drop in a default AGENTS.md for building R packages. |
| Authors: | Visruth Srimath Kandali [aut, cre, cph] (ORCID: <https://orcid.org/0009-0005-9097-0688>) |
| Maintainer: | Visruth Srimath Kandali <[email protected]> |
| License: | GPL (>= 3) |
| Version: | 1.0.0 |
| Built: | 2026-02-26 18:08:49 UTC |
| Source: | https://github.com/VisruthSK/bootstrapper |
Create a package with some opinionated setup.
bootstrapper( fields = getOption("usethis.description", list(`Authors@R` = person("Visruth", "Srimath Kandali", , "[email protected]", role = c("aut", "cre", "cph"), comment = c(ORCID = "0009-0005-9097-0688")))), setup_gha = TRUE, setup_dependabot = TRUE, setup_AGENTS = FALSE, setup_precommit = TRUE, ... )bootstrapper( fields = getOption("usethis.description", list(`Authors@R` = person("Visruth", "Srimath Kandali", , "[email protected]", role = c("aut", "cre", "cph"), comment = c(ORCID = "0009-0005-9097-0688")))), setup_gha = TRUE, setup_dependabot = TRUE, setup_AGENTS = FALSE, setup_precommit = TRUE, ... )
fields |
Named list of |
setup_gha |
Whether to configure GitHub Actions setup. |
setup_dependabot |
Whether to write a Dependabot configuration. |
setup_AGENTS |
Whether to write a default AGENTS file. |
setup_precommit |
Whether to write a Bash pre-commit hook. |
... |
Additional arguments passed to |
Invisibly returns NULL.
Create a package in root, prompts for a license, cleans up build ignore file.
create_package(fields = getOption("usethis.description"), ...)create_package(fields = getOption("usethis.description"), ...)
fields |
Named list of |
... |
Additional arguments passed to |
Invisibly returns NULL.
Run the package setup steps used by bootstrapper, including test
infrastructure, README/NEWS creation, GitHub Actions, and linting defaults.
Run this in the root directory of your package.
pkg_setup( setup_gha = TRUE, setup_dependabot = TRUE, setup_AGENTS = FALSE, setup_precommit = TRUE )pkg_setup( setup_gha = TRUE, setup_dependabot = TRUE, setup_AGENTS = FALSE, setup_precommit = TRUE )
setup_gha |
Whether to configure GitHub Actions setup. |
setup_dependabot |
Whether to write a Dependabot configuration. |
setup_AGENTS |
Whether to write a default AGENTS file. |
setup_precommit |
Whether to write a Bash pre-commit hook. |
Invisibly returns NULL.
Copies an opinionated, concise AGENTS.md for R package development.
setup_agents()setup_agents()
Invisibly returns NULL.
Writes a default Dependabot configuration for GitHub Actions.
setup_dependabot()setup_dependabot()
Invisibly returns NULL.
Sets up standard GitHub Actions used by this package template and updates workflow references.
setup_gha()setup_gha()
Invisibly returns NULL.
Writes a Bash pre-commit hook that runs format and lint checks.
setup_precommit()setup_precommit()
Invisibly returns NULL.
Prompts for a license choice in interactive sessions and applies the selected
usethis license helper.
use_license()use_license()
Invisibly returns NULL.