Closed goldingn closed 1 week ago
I tried manually installing ragg from cran (this has a later version than in the lockfile, so it installed from the binary quickly with no compilation errors), and then ran capsule::dev_mirror_lockfile()
to see if I could get capsule to update all the others.
It tripped up on igraph compilation this time. So I manually installed igraph
from the CRAN binary (2.0.3), then ran capsule::dev_mirror_lockfile()
again. However this time it tried to recompile igraph from source (even though the lockfile has 2.0.2 and I installed 2.0.3) and failed again.
Note: I had thought that installing packages in the session like this would update the default package library, not the renv. So I would understand why this approach would not work. But it clearly does work for making those packages appear when doing capsule::run()
, which confuses me.
Is there a way to manually install packages to the renv using capsule?
I worked around this by ditching capsule, installing the remaining cran packages with RStudio's helpful prompt, and finding and installing the remaining github packages
Ah man I'm so sorry about that - I had high hopes this would all work out of the tin, but there was something spooky going on with capsule and renv. I should change the README to reflect this!
This is working, so closing and we can open a new one next time we have this pain!
After doing:
per the readme, I get package absence errors. In this call I got a notification that
ragg
didn't compile:The end of the error message was:
So I suspect this may be to do with macos and homebrew doing silly things with linking and renaming compilers.
Before trying to fix this compiler issue, I first checked I could reproduce the error, and I can't. I tried running
capsule::run(targets::tar_make())
again, and this time I got:so I manually installed
crew
, thengeotargets
, thenmapview
. Then I looked at thepackages.R
file and saw that the list of things to install manually would be very long and I'd probably get an incorrect version in there. So I stopped. How to I trigger the reinstallation of these other packages so I can replicate the ragg installation issue?