pkgmkr aims to simplify the process of creating R packages by providing a single, straightforward function. It is designed to be user-friendly and to handle various package configurations, including optional Git integration, license selection, and more.
pkgdown site generation .In the future,you will be able to install the released version of pkgmkr from CRAN with:
install.packages("pkgmkr")Currently, pkgmkr can only be installed using devtools.
if (!requireNamespace("devtools", quietly = TRUE)) {
install.packages("devtools")
}
# Install pkgmkr from GitHub
devtools::install_github("sdhutchins/pkgmkr")This is a basic example of using this package.
# Load the pkgmkr library
library(pkgmkr)
# Define package metadata
au <- "Shaurita Hutchins"
email <- "sdh@gmail.com"
# Create the package
mk_pkg(
pkg_name = "gghmm",
author = au,
email = email,
git = FALSE,
git_username = NULL,
git_email = NULL,
readme_md = TRUE,
check_pkg_name = TRUE,
license = "MIT",
pkgdown = "TRUE"
)