release {devtools} | R Documentation |
Release package to CRAN.
Description
Run automated and manual tests, then post package to CRAN.
Usage
release(pkg = ".", check = FALSE, args = NULL)
Arguments
pkg |
The package to use, can be a file path to the package or a
package object. See |
check |
if |
args |
An optional character vector of additional command
line arguments to be passed to |
Details
The package release process will:
Confirm that the package passes
R CMD check
on relevant platformsConfirm that important files are up-to-date
Build the package
Submit the package to CRAN, using comments in "cran-comments.md"
You can add arbitrary extra questions by defining an (un-exported) function
called release_questions()
that returns a character vector
of additional questions to ask.
You also need to read the CRAN repository policy at
'https://cran.r-project.org/web/packages/policies.html' and make
sure you're in line with the policies. release
tries to automate as
many of polices as possible, but it's impossible to be completely
comprehensive, and they do change in between releases of devtools.
See Also
usethis::use_release_issue()
to create a checklist of release
tasks that you can use in addition to or in place of release
.