-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce dependencies needed to build book #546
Comments
One question for @Nowosad, any idea why GH actions is still spending ages installing mapdeck and other unnused packages, even after I demoted them to Suggests here https://github.com/geocompr/geocompkg/pull/16/files ? On https://github.com/Robinlovelace/geocompr/pull/549 there is this:
But mapdeck and friends are still being installed, pushing build times to over an hour!: https://github.com/Robinlovelace/geocompr/runs/768446869#step:10:2712 |
Update: I think the above commit is the answer and hopefully the solution. |
Still seems to insist on installing mapdeck: https://github.com/Robinlovelace/geocompr/runs/768582519#step:10:256 |
OK just realised: |
Closing for now as it's done. However, the book still has loads of dependencies including mapdeck, surprisingly indirectly required by tmap, and there is an unmerged pr in the geocompkg repo. Can you take a look @Nowosad ? I have been a bit brutal in removing dependencies and setting |
@Robinlovelace there are two PR in the geocompkg repo. Which is the good one? |
Good point, only one good PR now. The |
And as a related point think about dependencies led to this: r-spatial/leafem#21 |
Neat |
Move Imports to Suggests for robinlovelace/geocompr#546
@Robinlovelace please look at https://github.com/Robinlovelace/geocompr/runs/788038868?check_suite_focus=true - "Failed with error: 'there is no package called 'data.table''" |
This is the error I see:
|
Correction, I see what you mean now: https://github.com/Robinlovelace/geocompr/runs/788038868?check_suite_focus=true#step:10:7694 |
I realise now: just adding |
Will submit to CRAN asap. |
Heads-up @Nowosad: stplanr 0.6.1 is now on CRAN and the dependency on data.table should have been removed. |
Fixed, finally! |
With 50+ dependencies, some of which are used only in one chapter in code chunks that do not run, I think there is an incentive to move some of the
Imports
listed here toSuggests
, to reduce build times: https://github.com/geocompr/geocompkg/blob/master/DESCRIPTIONThe text was updated successfully, but these errors were encountered: