Skip to content

Commit f5dc632

Browse files
jennybcjimhester
andauthored
Execute the addins in interactive mode (#2350)
Co-authored-by: Jim Hester <james.f.hester@gmail.com>
1 parent b9ff989 commit f5dc632

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# devtools (development version)
22

3+
* RStudio addins now run in interactive mode, rather than background mode (@jennybc, #2350)
4+
35
* `install(upgrade)` now defaults to 'default' rather than 'ask'. This allows you to control the default asking behavior with the `R_REMOTES_UPGRADE` environment variable (#2345)
46

57
* `build_readme()` now uses the `path` argument, as designed (#2344)

R/active.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ find_active_file <- function(arg = "file") {
88
find_test_file <- function(path) {
99
type <- test_file_type(path)
1010
if (any(is.na(type))) {
11-
rlang::abort(c("Don't know how to find tests for: ", path[is.na(type)]))
11+
rlang::abort(c(
12+
"Don't know how to find tests associated with the active file:",
13+
path[is.na(type)]
14+
))
1215
}
1316

1417
is_test <- type == "test"

inst/rstudio/addins.dcf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
Name: Run a test file
22
Description: Run the current test file, using `devtools::test_active_file()`.
33
Binding: test_active_file
4-
Interactive: false
4+
Interactive: true
55

66
Name: Report test coverage for a file
77
Description: Calculate and report test coverage for the current test file, using `devtools::test_coverage_active_file()`.
88
Binding: test_coverage_active_file
9-
Interactive: false
9+
Interactive: true
1010

1111
Name: Report test coverage for a package
1212
Description: Calculate and report the test coverage for the current package, using `devtools::test_coverage()`.
1313
Binding: test_coverage
14-
Interactive: false
14+
Interactive: true
1515

1616
Name: Document a package
1717
Description: A wrapper for `roxygen`'s `roxygen2::roxygenize()`
1818
Binding: document
19-
Interactive: false
19+
Interactive: true

0 commit comments

Comments
 (0)