···11# Generated by roxygen2: do not edit by hand
2233+export(bootstrapper)
44+export(create_package)
55+export(pkg_setup)
66+export(use_license)
+37
R/bootstrapper.R
···11+#' Bootstrap a New R Package
22+#'
33+#' Create a package with some opinionated setup.
44+#'
55+#' @param path Path where the package should be created. Defaults to `"."`
66+#' @param fields Named list of `DESCRIPTION` fields passed to
77+#' [usethis::create_package()]. See [usethis::use_description()]
88+#' @param private Whether to create the GitHub repository as private. Defaults to `TRUE`.
99+#' @param ... Additional arguments passed to [usethis::create_package()].
1010+#'
1111+#' @return Invisibly returns `NULL`.
1212+#' @export
113bootstrapper <- function(
214 path = ".",
315 fields,
···921 invisible(NULL)
1022}
11232424+#' Create a Package and Connect GitHub
2525+#'
2626+#' Create a package, apply `.Rbuildignore` cleanup, prompt for a license, and
2727+#' connect the package to GitHub.
2828+#'
2929+#' @inheritParams bootstrapper
3030+#' @return Invisibly returns `NULL`.
3131+#' @export
1232create_package <- function(
1333 path = ".",
1434 fields = getOption(
···4969 invisible(NULL)
5070}
51717272+#' Apply Opinionated Package Setup
7373+#'
7474+#' Run the package setup steps used by `bootstrapper`, including test
7575+#' infrastructure, README/NEWS creation, GitHub Actions, and linting defaults.
7676+#'
7777+#' @return Invisibly returns `NULL`.
7878+#' @export
5279pkg_setup <- function() {
5380 tryCatch(
5481 usethis::use_testthat(),
···110137111138# Helpers ---------------------------------------------------------------------
112139140140+#' Choose and Apply a License
141141+#'
142142+#' Prompts for a license choice in interactive sessions and applies the selected
143143+#' `usethis` license helper.
144144+#'
145145+#' @param author A [utils::person()] object used when the selected license
146146+#' requires a copyright holder.
147147+#'
148148+#' @return Invisibly returns `NULL`.
149149+#' @export
113150use_license <- function(author) {
114151 license_choices <- c(
115152 "MIT" = "use_mit_license",
+24
man/bootstrapper.Rd
···11+% Generated by roxygen2: do not edit by hand
22+% Please edit documentation in R/bootstrapper.R
33+\name{bootstrapper}
44+\alias{bootstrapper}
55+\title{Bootstrap a New R Package}
66+\usage{
77+bootstrapper(path = ".", fields, private = TRUE, ...)
88+}
99+\arguments{
1010+\item{path}{Path where the package should be created. Defaults to \code{"."}}
1111+1212+\item{fields}{Named list of \code{DESCRIPTION} fields passed to
1313+\code{\link[usethis:create_package]{usethis::create_package()}}. See \code{\link[usethis:use_description]{usethis::use_description()}}}
1414+1515+\item{private}{Whether to create the GitHub repository as private. Defaults to \code{TRUE}.}
1616+1717+\item{...}{Additional arguments passed to \code{\link[usethis:create_package]{usethis::create_package()}}.}
1818+}
1919+\value{
2020+Invisibly returns \code{NULL}.
2121+}
2222+\description{
2323+Create a package with some opinionated setup.
2424+}
+32
man/create_package.Rd
···11+% Generated by roxygen2: do not edit by hand
22+% Please edit documentation in R/bootstrapper.R
33+\name{create_package}
44+\alias{create_package}
55+\title{Create a Package and Connect GitHub}
66+\usage{
77+create_package(
88+ path = ".",
99+ fields = getOption("usethis.description", list(`Authors@R` = person("Visruth",
1010+ "Srimath Kandali", , "public@visruth.com", role = c("aut", "cre", "cph"), comment =
1111+ c(ORCID = "0009-0005-9097-0688")))),
1212+ private = TRUE,
1313+ ...
1414+)
1515+}
1616+\arguments{
1717+\item{path}{Path where the package should be created. Defaults to \code{"."}}
1818+1919+\item{fields}{Named list of \code{DESCRIPTION} fields passed to
2020+\code{\link[usethis:create_package]{usethis::create_package()}}. See \code{\link[usethis:use_description]{usethis::use_description()}}}
2121+2222+\item{private}{Whether to create the GitHub repository as private. Defaults to \code{TRUE}.}
2323+2424+\item{...}{Additional arguments passed to \code{\link[usethis:create_package]{usethis::create_package()}}.}
2525+}
2626+\value{
2727+Invisibly returns \code{NULL}.
2828+}
2929+\description{
3030+Create a package, apply \code{.Rbuildignore} cleanup, prompt for a license, and
3131+connect the package to GitHub.
3232+}
+15
man/pkg_setup.Rd
···11+% Generated by roxygen2: do not edit by hand
22+% Please edit documentation in R/bootstrapper.R
33+\name{pkg_setup}
44+\alias{pkg_setup}
55+\title{Apply Opinionated Package Setup}
66+\usage{
77+pkg_setup()
88+}
99+\value{
1010+Invisibly returns \code{NULL}.
1111+}
1212+\description{
1313+Run the package setup steps used by \code{bootstrapper}, including test
1414+infrastructure, README/NEWS creation, GitHub Actions, and linting defaults.
1515+}
+19
man/use_license.Rd
···11+% Generated by roxygen2: do not edit by hand
22+% Please edit documentation in R/bootstrapper.R
33+\name{use_license}
44+\alias{use_license}
55+\title{Choose and Apply a License}
66+\usage{
77+use_license(author)
88+}
99+\arguments{
1010+\item{author}{A \code{\link[utils:person]{utils::person()}} object used when the selected license
1111+requires a copyright holder.}
1212+}
1313+\value{
1414+Invisibly returns \code{NULL}.
1515+}
1616+\description{
1717+Prompts for a license choice in interactive sessions and applies the selected
1818+\code{usethis} license helper.
1919+}