knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
r desc::desc_get_field("Title")
: r desc::desc_get_field("Description")
Feel free to use and/or fork this project!
You can install the development version of rdev from GitHub with:
# install.packages("remotes") remotes::install_github("jabenninghoff/rdev")
Or using renv:
# install.packages("renv") renv::install("jabenninghoff/rdev")
NEWS.md
.rdev supports creation of new R packages following rdev conventions as well as new
R Analysis packages.
The typical setup workflow (per ?quickstart
) is:
available::available()
to check package namecreate_github_repo()
to initialize the GitHub R repositoryinit()
in the newly created projectDESCRIPTION
file without committingsetup_analysis()
or setup_rdev()
to configure the package as an analysis package or
rdev package respectively.check_renv()
, ci()
to validate packagerdev automates the workflow for creating GitHub releases along with updating GitHub pages for either standard R packages or R analysis packages, using the release notes format in NEWS.md. A typical development workflow is:
new_branch()
get_release()
stage_release()
to create a new pull request on GitHub using details derived from NEWS.md,
including updating the README and GitHub pagesmerge_release()
, which merges the pull request, cleans up branches, and publishes
a new GitHub releaseFeature branches can be merged without starting a new release; stage_release()
just requires
that everything is committed, including new release notes in NEWS.md before running. When ready to
release, stage_release()
will use the existing branch if on a feature branch, and create a new
release branch if on the default.
For my workflow, I typically check renv when I start:
library(rdev) check_renv()
I also have a ci()
function to run all my continuous integration tests locally:
ci()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.