Closed wch closed 3 years ago
I can reproduce this, but only when using dependencies = TRUE
. Just pak::pkg_install("rstudio/shiny", ask = FALSE)
works.
I wonder if it has to do with circular "soft" dependencies (with Suggests and Remotes), like r-lib/pkgdepends#229.
As mentioned above, installing shiny failed. But then I was able to get shinytest to work, and after that, I was able to install shiny:
pak::pkg_install("rstudio/shiny", dependencies = TRUE, ask=F) # Error
pak::pkg_install("rstudio/shinytest", dependencies = TRUE, ask=F) # OK
pak::pkg_install("rstudio/shiny", dependencies = TRUE, ask=F) # OK
Yeah, just put the remote on only one or the other, not in both directions.
That issue is not about circular soft dependencies, though (https://github.com/r-lib/pkgdepends/issues/229#issuecomment-750420633), and I doubt that this one is. In general circular soft dependencies are not a problem for the solver, and the installer does not use soft dependencies.
I believe this is a much more mundane thinko bug. Will look at it in a minute.
Fixed by c3ea8c52ebb0bed5b6bcd1b3f422a47cd451d36a
@wch these binaries should be better: https://github.com/r-lib/pak/actions?query=workflow%3A%22Build+pak+binary%22
Well, it was about circular dependencies, after all, because circular dependencies triggered it. :)
Confirmed it works on my end. Thank you!