Skip to content

Commit

Permalink
Don't open projects with create() (#2347)
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmbarrett authored Apr 28, 2021
1 parent d4510b2 commit 4025c04
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

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

* `create()` no longer opens projects by default to avoid duplicate projects opened by the RStudio IDE project template (#2347, @malcolmbarrett)

# devtools 2.4.0

## Breaking changes and deprecated functions
Expand Down
5 changes: 3 additions & 2 deletions R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#' @param path A path. If it exists, it is used. If it does not exist, it is
#' created, provided that the parent path exists.
#' @param ... Additional arguments passed to [usethis::create_package()]
#' @inheritParams usethis::create_package
#' @return The path to the created package, invisibly.
#' @export
create <- function(path, ...) {
usethis::create_package(path, ...)
create <- function(path, ..., open = FALSE) {
usethis::create_package(path, ..., open = open)
}
9 changes: 8 additions & 1 deletion man/create.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4025c04

Please sign in to comment.