Skip to content

inst/extdata/context_kotl.gpkg (4.9 MB) ships but nothing reads it #112

Description

@NewGraphEnvironment

If we do it: the installed package loses 4.9 MB, about 40% of its 12.5 MB installed size. If we never do: every install carries a file nothing reads.

Problem

inst/extdata/context_kotl.gpkg is 4.9 MB. Nothing in R/, tests/, vignettes/ or README.md references it. The only mention is its producer, data-raw/example_context_kotl.R, plus a comment in data-raw/example_context_fwcp_peace.R. It dates from 3ece27c (2026-04-07, before the Kootenay Lake vignette). The vignette added in #57 uses context_kootenay_lake.gpkg, which appears to supersede it. example_aoi_kotl.gpkg is still used by the README example, so keep it.

Found by a code-check reviewer while verifying #100's tarball contents, and confirmed with git grep -n context_kotl.

Proposed Solution

  • Confirm context_kootenay_lake.gpkg supersedes it. Then delete inst/extdata/context_kotl.gpkg, and either delete data-raw/example_context_kotl.R or mark it superseded.
  • Rebuild and compare the tarball size before and after.

Outcome (PR #115)

  • Supersession confirmed. The file's consumer, the KOTL vignette, was removed in Remove KOTL vignette — peace-fwcp is the canonical worked example #50. context_kootenay_lake.gpkg has all five of its layers, plus wsgs and ecoregions, over an area that contains KOTL. No reader exists in this repo or, per an org-wide code search, in any other.
  • Decision: deleted the producer, rather than marking it superseded. A kept script for a deleted output would recreate the 4.9 MB file if run. Git history keeps the recipe.
  • Measured: the tarball went from 7.15 to 3.83 MB (−46%), and the installed package from 12.8 to 7.9 MB (−38%). The installed figure matches the "about 40%" above. The download shrinks by less than 4.9 MB because the gpkg compresses.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions