Skip to content

cmhc

0.2.12Package record

Access, Retrieve, and Work with CMHC Data

0packages depend
3.9Kdownloads / year
46.1%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.2.12

Minor changes

  • remove dependency on the aws.s3 package, 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_uid values
  • clarify the refresh argument documentation in get_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 testthat test suite covering the parsing and geography helpers

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.6 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.12
READMEYes · 417 wordsVignettesYes · 2 · evaluation depends on the environmentNEWSYes · 67% structured · mentions 0.2.12Citation fileNoWebsiteYes · pkgdown
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%

Downloads

3.9K
CRAN downloads in the past year
Rank #8,328 · ~11/day · ~321/mo
Daily download trend is not available in this view yet.
47630 days
1.1K90 days
3.9K1 year
Compare downloads with other packages →
Also on91 r2u10 autocran

Repository

30Stars
5Forks
3Open issues
1Open PRs
10Releases
155Commits
4Commit identities
155 commits · Last activity 2026-07-21 · +3.4% stars, 30d
Responsiveness
How these are sampled
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

2025-09-09 · 222026-10-17 · 30
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-07-21

pkgdown site last built 2026-07-21

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-07-21
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: CLAUDE.md
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing cmhc adds 36 packages (22 with compiled code, 22 MB of source tarballs). Heaviest: stringi 11 MB, openssl 1.1 MB, jsonlite 1.0 MB.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.2.0 (2022)
Releases (11)

Pick two releases to compare their code metrics.

  • 0.2.12Latest
    record
    2026-07-21 · current release · diff ↗ ·
    added 1 export
    list_cmhc_periods
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.10
    record
    2025-02-04 · diff ↗
  • 0.2.9
    record
    2024-11-05 · diff ↗
  • 0.2.8
    record
    2024-07-12 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.7
    record
    2023-12-13 · diff ↗
  • 0.2.6
    record
    2023-10-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.5
    record
    2023-04-03 · diff ↗
  • 0.2.4
    record
    2023-01-20 · diff ↗
  • 0.2.3
    record
    2022-10-10 · diff ↗ ·
    added 1 export
    select_cmhc_table
  • 0.2.1
    record
    2022-09-09 · diff ↗ ·
    removed 2 exports
    set_cache_path, show_cache_path
    added 2 exports
    set_cmhc_cache_path, show_cmhc_cache_path
  • 0.2.0
    record
    2022-06-15
  • R
    R 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")
von Bergmann, J. (2026). cmhc: Access, Retrieve, and Work with CMHC Data (Version 0.2.12) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for cmhc version 0.2.12 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy