Skip to content

Commit

Permalink
Drop unneccessary length check
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jul 26, 2024
1 parent 24fe590 commit 08de9eb
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 08de9eb

Please sign in to comment.