Skip to content

Install gdalcubes from GitHub now that CRAN archived it (#80) - #84

Merged
NewGraphEnvironment merged 5 commits into
mainfrom
80-gdalcubes-archived-on-cran
Sep 29, 2026
Merged

NewGraphEnvironment merged 5 commits into
mainfrom
80-gdalcubes-archived-on-cran

Conversation

@NewGraphEnvironment

Copy link
Copy Markdown
Owner

Fixes #80

Why

gdalcubes was archived on CRAN on 2026-09-16. drift lists it in Suggests, and the pkgdown workflow resolves Suggests for local::. with needs: website. That resolve has failed on every push since 2026-09-26 (runs 36257119060, 36257649915), so the published site is stuck at 7011fa6 from 2026-09-07. New users also can no longer install what dft_stac_fetch() and dft_stac_cube() need.

What

  • Remotes: gains appelmar/gdalcubes, with no suffix per the pin policy. Upstream master is 0.7.5 (ed68331, "CRAN v0.7.5 release candidate") and has already merged our filter_geom segfault fix (their PR #111), so the NewGraphEnvironment/gdalcubes@newgraph fork is no longer needed. The gotchas note records this.
  • README install section: pak::pak("appelmar/gdalcubes").
  • The three gdalcubes guards (dft_stac_fetch, dft_stac_cube, dft_index_expr) share one helper, check_gdalcubes(). Its error names the GitHub install. rlang::check_installed() would have offered a bare-name install, which now means CRAN and fails. Code-check round 1 found this.
  • Five opt-in network assertions have listed the pre-Cache key moved on an rlang upgrade, silently orphaning every cached cube and fetch #48 cache path (<cache>/<source>) since Cache key moved on an rlang upgrade, silently orphaning every cached cube and fetch #48 moved the cache to <cache>/v2/<source>, so they failed on every opt-in run. They now use cache_scheme_dir(). Verifying 0.7.5 surfaced them. Every data assertion in those tests had passed.

Verification (gdalcubes 0.7.5 installed from GitHub)

run result
offline devtools::test() FAIL 0, SKIP 13, PASS 1007
DRIFT_TEST_NETWORK=true, test-dft_stac_cube.R (incl. tiled vs untiled) FAIL 0, SKIP 1, PASS 109
DRIFT_TEST_NETWORK=true, test-dft_stac_fetch.R FAIL 0, SKIP 2, PASS 165
pak resolve of deps::., any::pkgdown, local::. with Config/Needs/website against an empty library (reviewer-run) gdalcubes resolves to appelmar/gdalcubes 0.7.5, as leaflet.extras already does

The source build on the Ubuntu runner is not yet observed; this PR's pkgdown run is that check.

/code-check ran three rounds: round 1 found 1 issue (fixed), round 2 found none, and round 3 is below.

No raster-pipeline function changed, so the BULK scale test does not apply.

Relates to NewGraphEnvironment/sred-2025-2026#16

🤖 Generated with Claude Code

https://claude.ai/code/session_01PRhUJsuKABLfpBGktPoiBN

NewGraphEnvironment and others added 5 commits September 28, 2026 07:19
gdalcubes was archived on CRAN on 2026-09-16, which broke the pkgdown
workflow's dependency resolve and user installs of the STAC functions.
Upstream master (0.7.5) carries the filter_geom fix from our fork, so
Remotes points at appelmar/gdalcubes with no suffix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PRhUJsuKABLfpBGktPoiBN
Since #48 the cache lives under <cache>/v2/<source>, but five opt-in
network assertions still listed <cache>/<source> and so failed on every
run. Found verifying gdalcubes 0.7.5; every data assertion passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PRhUJsuKABLfpBGktPoiBN
rlang::check_installed() offered a bare-name install, which now means
CRAN and fails. The three gdalcubes guards share one helper whose error
gives pak::pak("appelmar/gdalcubes"). Found by code-check round 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PRhUJsuKABLfpBGktPoiBN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PRhUJsuKABLfpBGktPoiBN
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PRhUJsuKABLfpBGktPoiBN
@NewGraphEnvironment
NewGraphEnvironment merged commit dea925d into main Sep 29, 2026
1 check passed
@NewGraphEnvironment
NewGraphEnvironment deleted the 80-gdalcubes-archived-on-cran branch September 29, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gdalcubes archived on CRAN breaks the pkgdown deploy and user installs

1 participant