Open jameslairdsmith opened 1 month ago
https://github.com/r-lib/pak/blob/d791187ade9d9c2eb2f47adb685a37b5b6e3fe3e/R/package.R#L211
There might be a reason for this, but was expecting something like pkg_deps(c("tidyverse", "tidymodels")) to work?
pkg_deps(c("tidyverse", "tidymodels"))
library(pak) pkg_deps(c("tidyverse", "tidymodels")) #> Error in pkg_deps(c("tidyverse", "tidymodels")): length(pkg) == 1 && is.character(pkg) is not TRUE
Created on 2024-05-13 with reprex v2.1.0
It's not a big problem, as one can get the desired output from pkgdepends:
library(pkgdepends) my_deps <- new_pkg_deps(c("tidyverse", "tidymodels")) my_deps$solve() my_deps$get_solution()$data
But I figure most people are likely to try find it in pak first.
Would you like to submit a PR? (No pressure, really :))
https://github.com/r-lib/pak/blob/d791187ade9d9c2eb2f47adb685a37b5b6e3fe3e/R/package.R#L211
There might be a reason for this, but was expecting something like
pkg_deps(c("tidyverse", "tidymodels"))
to work?Created on 2024-05-13 with reprex v2.1.0
It's not a big problem, as one can get the desired output from pkgdepends:
But I figure most people are likely to try find it in pak first.