You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Digging into the code, this seems to be a consequence of passing dependencies through to install.packages() unaltered, while base R's install.packages() does not recognize the synonym.
Relatedly, install_X(dependencies = "soft"), for sources other than CRAN, attempts to install all recursive soft dependencies, often hundreds of packages. dependencies = TRUE has the intended behavior of installing all hard and soft dependencies of the directly requested package(s), but only the hard dependencies of those packages in turn.
The cause of this seems to be that there's a special-case check for TRUE to harden to NA for subdependencies, before the special meaning of "soft" is interpreted:
I'm seeing the same issue with a character vector of dependency types, even though the other options are documented as shorthands for that: remotes::install_github("tidyverse/ggplot2@*release", dependencies = c("Depends", "Imports", "LinkingTo", "Suggests"), force = T) behaves the same as @dvg-p4's last example above.
install_cran(dependencies = "soft")
(or "hard") throws an error wheredependencies = TRUE
(orNA
) succeeds:Digging into the code, this seems to be a consequence of passing
dependencies
through toinstall.packages()
unaltered, while base R'sinstall.packages()
does not recognize the synonym.Relatedly,
install_X(dependencies = "soft")
, for sources other than CRAN, attempts to install all recursive soft dependencies, often hundreds of packages.dependencies = TRUE
has the intended behavior of installing all hard and soft dependencies of the directly requested package(s), but only the hard dependencies of those packages in turn.The cause of this seems to be that there's a special-case check for
TRUE
to harden toNA
for subdependencies, before the special meaning of"soft"
is interpreted:remotes/R/install.R
Line 198 in 5b7eb08
The text was updated successfully, but these errors were encountered: