student: add mapping/census stack (sf + tidycensus)#14
Merged
Conversation
Bake sf and tidycensus (which pulls in tigris) into the student image so census-tract mapping works out of the box — base already ships the GDAL/PROJ/GEOS/udunits system libs for exactly this. Smoke test loads all three and runs an offline st_sample() on a CRS-tagged polygon to verify the geospatial linkage end to end. Interactive maps use the already-baked leaflet over free CARTO tiles (no Mapbox token needed). Also update the commit-trailer convention to name the current model. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds an R geospatial “mapping / census” layer to the student devcontainer image so students can do census-tract mapping out of the box (leveraging the base image’s preinstalled GDAL/PROJ/GEOS/udunits system libraries), and updates docs to reflect the new capabilities and key requirements.
Changes:
- Install
sfandtidycensusin thestudentimage viapak, with a build-time smoke test that loadssf/tidycensus/tigrisand runs an offlinesfgeometry operation. - Document the new mapping/census tooling in
README.mdand the student image section ofCLAUDE.md. - Update the documented commit-trailer convention example to be model-agnostic (names the current Claude model used).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
student/Dockerfile |
Installs sf + tidycensus and adds an sf smoke test to validate geospatial functionality in the built image. |
README.md |
Adds the mapping/census tooling to the student image feature list, including the Census API key requirement. |
CLAUDE.md |
Documents the student image’s mapping/census stack and updates the commit trailer convention example. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bakes
sfandtidycensus(which pulls intigris) into the student image so census-tract mapping works out of the box. The base image already ships the GDAL/PROJ/GEOS/udunits system libs for exactly this — this PR adds the R layer on top.sf/tidycensus/tigrisand runs an offlinest_sample()on a CRS-tagged polygon, verifying the geospatial linkage end to end.leafletdrawssfobjects over free CARTO tiles (no Mapbox token).tidycensusqueries require a free per-student Census API key (now mandatory upstream — the API rejects keyless requests).Validation build on this branch: green across base/dev/student — https://github.com/PPBDS/devcontainers/actions/runs/28596767852
🤖 Generated with Claude Code