Skip to content

Commit 4025c04

Browse files
Don't open projects with create() (#2347)
1 parent d4510b2 commit 4025c04

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
* The RStudio addins now use `test_active_file()` and `test_coverage_active_file()` instead of the deprecated `test_file()` and `test_coverage_file()` (#2339)
66

7+
* `create()` no longer opens projects by default to avoid duplicate projects opened by the RStudio IDE project template (#2347, @malcolmbarrett)
8+
79
# devtools 2.4.0
810

911
## Breaking changes and deprecated functions

R/create.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#' @param path A path. If it exists, it is used. If it does not exist, it is
44
#' created, provided that the parent path exists.
55
#' @param ... Additional arguments passed to [usethis::create_package()]
6+
#' @inheritParams usethis::create_package
67
#' @return The path to the created package, invisibly.
78
#' @export
8-
create <- function(path, ...) {
9-
usethis::create_package(path, ...)
9+
create <- function(path, ..., open = FALSE) {
10+
usethis::create_package(path, ..., open = open)
1011
}

man/create.Rd

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)