Skip to content

Commit

Permalink
Build before confirming submission
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored and jimhester committed Dec 17, 2018
1 parent a6bbe87 commit 8e1818c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/release.R
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,13 @@ submit_cran <- function(pkg = ".", args = NULL) {
return(invisible())
}

if (yesno("Ready to submit to CRAN?")) {
pkg <- as.package(pkg)
built_path <- build_cran(pkg, args = args)

if (yesno("Ready to submit ", pkg$package, " (", pkg$version, ") to CRAN?")) {
return(invisible())
}

pkg <- as.package(pkg)
built_path <- build_cran(pkg, args = args)
upload_cran(pkg, built_path)

flag_release(pkg)
Expand Down

0 comments on commit 8e1818c

Please sign in to comment.