Access, Retrieve, and Work with CMHC Data
Overview
Wrapper around the Canadian Mortgage and Housing Corporation (CMHC) web interface. It enables programmatic and reproducible access to a wide variety of housing data from CMHC.
Minor changes
- remove dependency on the
aws.s3package, geographic data is now downloaded directly over HTTPS - remove a stale hardcoded session cookie from data requests
- fix a broken error message for invalid named
geo_uidvalues - clarify the
refreshargument documentation inget_cmhc() - silence a spurious many-to-many join warning when building the table list
- memoize the (static) table registry so it is only assembled once per session
- add timeouts to all requests to the CMHC and geography servers
- add a
testthattest suite covering the parsing and geography helpers
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 17 (4 internal)
- Examples that run
- 58%7 run in a plain check · 5 never run
- Exported functions with examples
- 92%
- Documented parameters
- 100%
- Return-value docs
- 92%
- Help pages citing references
- 0%
- Basic usage HTML
- Rental Universe HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 112
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/mountainmath/cmhc on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-07-21Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: CLAUDE.md
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.12Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.2.102025-02-04 · diff ↗
- 0.2.92024-11-05 · diff ↗
- 0.2.82024-07-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.2.72023-12-13 · diff ↗
- 0.2.62023-10-06 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.2.52023-04-03 · diff ↗
- 0.2.42023-01-20 · diff ↗
- 0.2.3
- 0.2.12022-09-09 · diff ↗ ·
removed 2 exports
set_cache_path, show_cache_pathadded 2 exports
set_cmhc_cache_path, show_cmhc_cache_path - 0.2.02022-06-15
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-06-15
- Total releases
- 11 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 156 KB / 4 files
- Download size
- 557 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cmhc")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.