···33<!-- badges: start -->
44[](https://github.com/VisruthSK/bootstrapper/actions/workflows/R-CMD-check.yaml)
55[](https://app.codecov.io/gh/VisruthSK/bootstrapper)
66-[](https://github.com/VisruthSK/bootstrapper/actions/workflows/test-coverage.yaml)
76<!-- badges: end -->
8799-The goal of bootstrapper is to ...
88+The goal of bootstrapper is to quickly setup a modern R package with appropriate actions and assorted setup. Mostly for my own usage, pretty opinionated.
1091110## Installation
1211···14131514``` r
1615# FILL THIS IN! HOW CAN PEOPLE INSTALL YOUR DEV PACKAGE?
1616+pak::pak("VisruthSK/bootstrapper")
1717```
18181919-## Example
1919+## Usage
20202121-This is a basic example which shows you how to solve a common problem:
2121+The package is optimized for my usage by default, so calling the main function bare is not advised unless you are me.
22222323-``` r
2424-library(bootstrapper)
2525-## basic example code
2323+```r
2424+bootstrapper:bootstrapper()
2625```
27262828-## IMPLEMENT THIS WORKFLOW:
2727+The main thing to set is the fields option, where you should put your own name, email, etc. instead.
29283029```r
3131-usethis::create_package(".")
3232-# publish repo to GitHub
3333-usethis::use_readme_md()
3434-unlink("*.Rproj")
3535-usethis::use_testthat()
3636-3737-# GitHub Actions Setup
3838-usethis::use_github_action("check-standard", badge = TRUE)
3939-usethis::use_github_action("test-coverage", badge = TRUE)
4040-usethis::use_github_action(
4141- url = "https://github.com/visruthsk/bootstrapper/blob/main/.github/workflows/format-suggest.yaml"
4242-)
4343-usethis::use_pkgdown_github_pages()
4444-c(
4545- "version: 2",
4646- "updates:",
4747- " - package-ecosystem: \"github-actions\"",
4848- " directory: \"/\"",
4949- " schedule:",
5050- " interval: \"weekly\""
5151-) |>
5252- write_to_path(fs::path(".github", "dependabot.yml"))
5353-5454-find_replace_in_dir("actions/checkout@v4", "actions/checkout@v6")
5555-find_replace_in_dir(
5656- "JamesIves/github-pages-deploy-action@v4.5.0",
5757- "JamesIves/github-pages-deploy-action@v4"
3030+bootstrapper:bootstrapper(
3131+ fields = list(
3232+ "Authors@R" = person(
3333+ "Visruth",
3434+ "Srimath Kandali",
3535+ ,
3636+ "public@visruth.com",
3737+ role = c("aut", "cre", "cph"),
3838+ comment = c(ORCID = "0009-0005-9097-0688")
3939+ )
4040+ )
5841)
4242+```
59436060-usethis::use_tidy_description()
6161-# pick a license
6262-```
4444+There are some flags you can set to flip on/off certain features like publishing the repository as private/public on GitHub, copying over some GitHub Actions, using Dependabot for GHA, an `AGENTS.md` file, and a precommit hook for `air` and `jarl` formatting.