OCHA-DAP / hdx-signals

HDX Signals
https://un-ocha-centre-for-humanitarian.gitbook.io/hdx-signals/
GNU General Public License v3.0
6 stars 0 forks source link

lockfile not synced with `{magick}` dep #51

Closed zackarno closed 6 months ago

zackarno commented 6 months ago

Can you add {magick} dep to the renv lockfile so I can sync to the correct version?

box::use(./utils/plot_displacement)
#> Error in box::use(./utils/plot_displacement) : 
#>   there is no package called ‘magick’

writing the tracing below to show that it's getting a bit tricky to trouble shoot simple issues. Would be nice to find the root cause somehow faster or at least be able to double click to jump through files? any suggestions?

  1. src/indicators/idmc_displacement/update_displacement.R -> box::use(./utils/plot_displacement)
  2. src/indicators/idmc_displacement/utils/plot_displacement.R-> box::use(../../../images/create_images)
  3. src/images/create_images.R -> box::use(./save_image)
  4. src/images/save_image.R -> box::use(../email/mailchimp/images)
  5. src/email/maillchimp/images -> box::use(magick) #final issue!
zackarno commented 6 months ago

Actually renv::status() returns a bunch of packages in "inconsistent state" for me. However, renv::restore() says im synchronized with the lockfile.... so this just means you need to run renv::snapshot() and I guess i should wait for you to do it so i get the same versions as you instead of visa versa?

caldwellst commented 6 months ago

Yeah, just needed to run the snapshot(), sorry! Have done now.

zackarno commented 6 months ago

nice - that fix almost made {renv} feel like pleasant experience!