From b05576d0b4e1c0804fd1a9b9021e54eb20e0b158 Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 2 Aug 2017 17:25:32 -0500 Subject: [PATCH] Look for releae questions in correct environment Fixes #1434 --- NEWS.md | 3 +++ R/release.r | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 5bca9b034..8cfec8404 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # devtools 1.13.3.9000 +* `release()` once again looks for additional release questions in the + correct environment (#1434). + * `submit_cran()` now checks that you're ready to submit, since this is a potentially expensive operation (#1228) diff --git a/R/release.r b/R/release.r index b15c13aed..014b1a5bd 100644 --- a/R/release.r +++ b/R/release.r @@ -115,7 +115,7 @@ release <- function(pkg = ".", check = TRUE, args = NULL, spelling = "en_US") { if (yesno("Is DESCRIPTION up-to-date?")) return(invisible()) - release_questions <- pkgload::pkg_env(pkg)$release_questions + release_questions <- pkgload::ns_env(pkg)$release_questions if (!is.null(release_questions)) { questions <- release_questions() for (question in questions) {