Skip to content

Commit

Permalink
Merge pull request #667 from r-lib/pkg_deps-vector
Browse files Browse the repository at this point in the history
Drop unneccessary length check
  • Loading branch information
gaborcsardi authored Jul 26, 2024
2 parents 24fe590 + 08de9eb commit f8971a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pak (development version)

* `pkg_deps()` now accepts a vector of package names.

* The metadata cache now does not use source URLs for packages in `Archive`
on Posit Package Manager repositories. This URLs may serve a different
package, even a source package when the main URL for the same package
Expand Down
2 changes: 1 addition & 1 deletion R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pkg_remove_internal <- function(pkg, lib) {
#' ```

pkg_deps <- function(pkg, upgrade = TRUE, dependencies = NA) {
stopifnot(length(pkg) == 1 && is.character(pkg))
stopifnot(is.character(pkg))
load_extra("pillar")
remote(
function(...) {
Expand Down

0 comments on commit f8971a7

Please sign in to comment.