cancensus
‹0.6.1
- 0.6.119 Jun 2026, current
- 0.6.014 Apr 2026
- 0.5.106 Nov 2025
- 0.5.710 Feb 2024
- 0.5.64 Oct 2023
- 0.5.523 Jan 2023
- 0.5.47 Nov 2022
- 0.5.325 Aug 2022
- 0.5.219 Aug 2022
- 0.5.08 Feb 2022
- 0.4.830 Oct 2021
- 0.4.722 Oct 2021
- 0.4.621 Oct 2021
- 0.4.520 Oct 2021
- 0.4.419 Oct 2021
- 0.4.38 Jun 2021
- 0.4.29 Feb 2021
- 0.4.127 Jan 2021
- 0.4.016 Jan 2021
- 0.3.216 Jul 2020
- 0.3.123 Jun 2020
- 0.322 Jun 2020
- 0.2.212 May 2020
- 0.2.15 Mar 2020
- 0.2.028 Jul 2019
- 0.1.820 Nov 2018
- 0.1.74 Feb 2018
- 0.1.624 Jan 2018
Access, Retrieve, and Work with Canadian Census Data and Geography
- CRAN checks, method
Method
Checks and health
CRAN runs every current package through
R CMD checkon a set of machines and publishes a result for each one. The health shown on a package page comes from these results alone.- Problems
- Notes alone never count against a package, but a warning, an error or a failure on any platform is a problem. Open CRAN deadlines are a fact of their own, shown as a clock after the mark, so the mark always says what the checks found.
- Checks only
- Health reflects CRAN's check results and nothing else. Even a package with no tests, no coverage or no recent release can have every platform OK.
- Once a day
- Results are collected once a day from files CRAN publishes. Each platform is one machine set-up, named by its R version, operating system, architecture and compiler, such as r-devel-linux-x86_64-fedora-clang.
- Platforms counted
- The 13 in 3 of 13 is the number of platform rows CRAN published for that package on the day of collection. The set of machines changes over time, so the number is not fixed, and a package missing from a platform counts as neither passing nor failing there.
- All OK13 platforms
- CRAN 30-day downloads, method
- 975+2.4% up on the 30 days before, the better direction
- Dependent packages, method
Method
Reverse dependencies
Dependent packages are other packages that list this one under
Depends,ImportsorLinkingToin theirDESCRIPTIONfile. Those fields list the packages a package needs to install, so dependents break if this one is archived or broken.- As declared
- The counts follow the declarations as written, not whether a package uses the other one when it runs.
- Suggests apart
- Packages that list this one only under
Suggestsinstall and run without it, and use it for tests, examples or an optional feature. They are counted as Suggested by, never among the dependents, and a package that also lists it under one of the three fields is a dependent and is not counted again. - Zero
- Zero dependents means no current CRAN package declares a need for this one, though some may suggest it. On 28 Oct 2026, 19,572 of the 25,583 current CRAN packages had no dependent package.
- 04 more suggest it
- Test coverage, method
Method
Test coverage
Test coverage is measured by downloading each CRAN package's current source file, installing its dependencies, building it and running its tests under covr.
- Almost half of CRAN has no tests to run
- Only CRAN packages are measured. Many have no percentage, most often because the package has no tests, and that blank is a recorded outcome, not missing data.
- NOT_CRAN
- Tests run with NOT_CRAN=true, so tests that skip themselves on CRAN run here, and the figure can differ from what CRAN's own checks see.
- Current version only
- Only the current version is measured, and a new version on CRAN is measured again. Older rows are kept but never filled in later. This is one package's run.
- Never 0%
- On a package page three states stay apart: measured, no tests, and not measured. Neither of the last two is ever shown as 0%.
- 7%of lines run by tests
- Advisories, method
Method
Security advisories
Advisories come from the R Consortium advisory database, a community record of security problems in R packages, as OSV publishes it.
- The copy
- The record is read once a day. The data is published under the Apache License 2.0 and is credited on the advisories list.
- Box under the name
- Under the package's name, a box names any advisory that affects the current release, with its fix or that there is none.
- Ranges
- Advisories state ranges, such as from 0.9.12 up to but not including 1.8.8. Each range is checked against every version CRAN has published, using the version rules R itself uses, so a release that came out after the advisory was written is still caught by its range.
- Not the package
- The rating is for the library flaw itself, not for how exposed the R package is, and it is never added up into a figure for the package.
- None known
About
Method, About Method Licence figures come from the Licences
License field of each package's DESCRIPTION file, read the way R itself reads it. No licence file is opened.tools::analyze_license() and R's own licence database, as CRAN's checks read it.| is read, so one string can offer two families.
Integrated, convenient, and uniform access to Canadian Census data and geography retrieved using the 'CensusMapper' API. This package produces analysis-ready tidy data frames and spatial data in multiple formats, as well as convenience functions for working with Census variables, variable ...
Full description
Integrated, convenient, and uniform access to Canadian Census data and geography retrieved using the 'CensusMapper' API. This package produces analysis-ready tidy data frames and spatial data in multiple formats, as well as convenience functions for working with Census variables, variable hierarchies, and region selection. API keys are freely available with free registration at <https://censusmapper.ca/api>. Census data and boundary geometries are reproduced and distributed on an "as is" basis with the permission of Statistics Canada (Statistics Canada 1996; 2001; 2006; 2011; 2016; 2021).
- Maintainer
- Dmitry Shkolnik
- Licence
- MIT + file LICENSE
- Latest release
- 19 Jun 2026
- First release
- 24 Jan 2018
More details
- Releases
- 28
- Needs compilation
- No
- Needs R
- >= 4.1
- Config/roxygen2/version
- 8.0.0
- LazyData
- yes
Task views (1)
Earlier: Analysis of Spatial Data (until 23 Oct 2021).
Subjects (1) Method, SubjectsMethod
Subjects and collections
Subjects are the site's own grouping of CRAN packages, found by clustering. Collections are sets of packages that communities declare, such as the tidyverse.
- Subjects
- Subjects are found by clustering the words of current CRAN packages and the packages they use. No one edits them by hand.
- Collections
- Collections are sets that communities declare, through a package that installs the set or an organization on GitHub. The site finds them by rules.
- Who made each
- Subjects are marked Site and collections Community. Subjects, collections and task views are never mixed in one list.
- The day of the data
- Subjects and collections were last worked out on 22 Oct 2026.
Cite
Package
Run in R for the authors' entry:
citation("cancensus")The package provides a citation file, so citation() returns the authors' own entry.
R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
Balamuta, J. J. (2026). R Observatory: Metrics for cancensus version 0.6.1 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About
From data release v2026-10-28, which the citation names so these numbers can be found later.
Health
All 13 check platforms pass.
r-devel-linux-x86_64-debian-clangThe unreleased R on Linux, x86_64, debian-clang
OK
- Version checked
- 0.6.1
- Time taken
- 80 s
r-devel-linux-x86_64-debian-gccThe unreleased R on Linux, x86_64, debian-gcc
OK
- Version checked
- 0.6.1
- Time taken
- 61 s
r-devel-linux-x86_64-fedora-clangThe unreleased R on Linux, x86_64, fedora-clang
OK
- Version checked
- 0.6.1
- Time taken
- 55 s
r-devel-linux-x86_64-fedora-gccThe unreleased R on Linux, x86_64, fedora-gcc
OK
- Version checked
- 0.6.1
- Time taken
- 60 s
r-devel-windows-x86_64The unreleased R on Windows, x86_64
OK
- Version checked
- 0.6.1
- Time taken
- 117 s
r-oldrel-macos-arm64The previous release of R on macOS, arm64
OK
- Version checked
- 0.6.1
- Time taken
- 35 s
r-oldrel-macos-x86_64The previous release of R on macOS, x86_64
OK
- Version checked
- 0.6.1
- Time taken
- 155 s
r-oldrel-windows-x86_64The previous release of R on Windows, x86_64
OK
- Version checked
- 0.6.1
- Time taken
- 125 s
r-patched-linux-x86_64The patched release of R on Linux, x86_64
OK
- Version checked
- 0.6.1
- Time taken
- 74 s
r-release-linux-x86_64The current release of R on Linux, x86_64
OK
- Version checked
- 0.6.1
- Time taken
- 74 s
r-release-macos-arm64The current release of R on macOS, arm64
OK
- Version checked
- 0.6.1
- Time taken
- 31 s
r-release-macos-x86_64The current release of R on macOS, x86_64
OK
- Version checked
- 0.6.1
- Time taken
- 134 s
r-release-windows-x86_64The current release of R on Windows, x86_64
OK
- Version checked
- 0.6.1
- Time taken
- 113 s
- 13 OK
Over time
No change since 5 Aug 2026
As a list (5)
| Changed | Worst status | OK | Notes | Warnings | Errors |
|---|---|---|---|---|---|
| 5 Aug 2026 | OK | 13 | 0 | 0 | 0 |
| 1 Aug 2026 | Note | 12 | 1 | 0 | 0 |
| 8 May 2026 | OK | 13 | 0 | 0 | 0 |
| 7 May 2026 | Warning | 12 | 0 | 1 | 0 |
| 10 Mar 2026 | OK | 14 | 0 | 0 | 0 |
Since March 2026
Downloads
Method, Downloads Method Download figures count requests logged by each distribution channel. They are not counts of installs or of users, because each channel publishes its own totals and this site reads them.Downloads
- Total downloads in the last 30 days
- 1,068+4.5% up on the 30 days before, the better directionIt is the sum of 4 channels: CRAN, autoCRAN, conda-forge and c2d4u. r2u is switched off.
CRAN rank
3,726 of 26,530
CRAN
975 downloads in the last 30 days
- Rank
- 3,726 of 26,530
- Change
- +2.4% up on the 30 days before, the better direction
It is in the total. Take it out
r2u
7 downloads in the last 30 days
- Rank
- 7,875 of 30,526
- Change
- −36.4% down on the 30 days before, the worse direction
It is switched off. Put it back
autoCRAN
15 downloads in the last 30 days
- Rank
- 3,005 of 29,212
- Change
- −21.1% down on the 30 days before, the worse direction
It is in the total. Take it out
conda-forge
76 downloads in the last 30 days
- Rank
- 3,553 of 3,828
- Change
- +85.4% up on the 30 days before, the better direction
It is in the total. Take it out
c2d4u, no longer updated
2 downloads in the last 30 days
- Rank
- 4,900 of 7,575
- Change
- −80% down on the 30 days before, the worse direction
It is in the total. Take it out
The total is 1,068 downloads in the last 30 days. It is the sum of 4 channels: CRAN, autoCRAN, conda-forge and c2d4u. r2u is switched off.
Over time
Dependencies
Code
Method, Code Method Code metrics come from reading the released source of each package version. The package is never installed, loaded or run.Code metrics
README, vignettes, a NEWS file and the shares read from its help pages. Files kept only in the repository, such as a pkgdown configuration or CI files, are read by the repository scan instead.
- Functions
- 63
- Public exports
- 33
- Lines of R code
- 2,927
- Median complexity
- 4
Functions (63)
Size and composition
Lines by kind (5,615)
| Kind | Lines | Share |
|---|---|---|
| R code | 2,927 | 52% |
| Tests | 423 | 8% |
| Documentation | 1,276 | 23% |
| Guides | 989 | 18% |
Lines by language
| Language | Lines | Share |
|---|---|---|
| R | 3,350 | 60% |
| Rd | 1,276 | 23% |
| Vignettes | 989 | 18% |
Languages are counted from file extensions.
- Files
- 99
- R functions
- 63
- Deprecated functions
- 1
Complexity
- Median
- 4
- Mean
- 5.75
- Highest
- 53
- Median lines per function
- 24
About complexity
Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.
Call graph figures
- R functions
- 63
- Calls
- 77
- Unconnected
- 12
- Groups
- 2
Growth (28 releases)
Release changes
Tests
The tests ran and coverage was measured.
- Lines run by tests
- 7.4%
- Expressions run by tests
- 8.6%
- Test cases
- 14
- Exports named in tests
- 9.1%
Coverage by file (13)
Coverage run
- Lines counted
- 1,255
- Lines the tests ran
- 93
- Tests passed
- Yes
- Measured with
- covr 3.6.5 on R 4.6.1
Test suite
- Has tests
- Yes
- Test frameworks
- testthat
- Test cases
- 14
- Lines of tests
- 423
- Test lines per line of code
- 0.14
Documentation
- Exports documented
- 100%
- Arguments documented
- 100%
- Return value documented
- 57.6%
- Help pages with examples
- 89.5%
- Examples run in checks
- 14.7%
Guides (8)
Other documentation
- README
- Yes, 1,320 words
- Release notes file
- Yes
- Help pages
- 38
- Lines of documentation
- 1,276
Datasets
Method, Datasets Method The datasets inside packages are read from their R objects in datasets
data/ folders when the code is analysed. Each object is described by its class, its shape and its columns, and fingerprinted so the same data can be found in other packages.data() are listed, 76,180 on CRAN and 8,045 on Bioconductor, so the list is not every file in data/.
| Dataset | Size | Columns |
|---|---|---|
| CODES_ | 65 × 3 | geography, status_ |
| COV_ | 22 × 3 | station, geo_ |
People
Method, People Method People on the site are the names packages give them in their Author and maintainer identity
DESCRIPTION files: authors from the author list, and the maintainer from the Maintainer field. Spellings of one name become one person only where the rules below allow it, and when in doubt the rules keep people apart.
Maintainer since 0.1.6 (2018), author
Author
Author
Repository
Method, figures by host Method Repository signals are the figures read from the source repository a package links to: stars, forks, issues, commits, releases and the time issues take to close. They are read from GitHub, GitLab, Codeberg and Bitbucket.Repository signals
URL and BugReports fields of its DESCRIPTION file. Read-only mirrors, the cran and bioc accounts on GitHub and git.bioconductor.org, are left out.
mountainMath / cancensus on github.com
- Stars
- 90no change on 30 days ago
- Forks
- 14
- Open issues
- 6
- Last commit
- 16 Jul 2026
Activity
- Commits
- 633
- Open pull requests
- 0
- Tagged releases
- 16
- Latest tagged release
- v0.6.1, 16 Jul 2026
- Issues closed in
- 38 days (median)
- Pull requests closed in
- 1 day (median)
- Pull requests merged
- 89%
- Created
- 28 Jul 2017
- Licence file reads as
- –
Development practices (8)
| Kind | Found |
|---|---|
| Continuous integration | GitHub Actions, R CMD check workflow, Travis CI (config file) The R CMD check workflow runs on Linux, macOS and Windows |
| Docs source | pkgdown GitHub Pages site last deployed 2026-07-16 pkgdown site last built 2026-06-17, before release 0.6.1 (2026-06-19) |
| Reproducibility and dev environment | data-raw/ |
| CRAN release process | cran-comments.md |
| Lint, format, editor | RStudio project |
Method, repository practices Method Beta Each week a scan of the public source repository a package links to looks for the tools a maintainer has set up, and the Repository section lists the findings. Repositories on GitHub and GitLab are scanned.Repository practices
R CMD build reads .Rbuildignore and leaves out files used only in development, such as .github/, .lintr, renv/, a Dockerfile and cran-comments.md, so the released source file holds almost none of them. The repository is the one place these files stay visible.
AI tools
Method, AI tools Method Beta What is found in a repository is not a measure of the code.AI tool findings
Tools
| Tool | First seen | Found | Commits crediting it |
|---|---|---|---|
| Claude Code | 11 Nov 2025 | Named in .Rbuildignore.claudePull request it wrote: opened by a project member | 15 at least |
- Named in .Rbuildignore
- Pull request
Models
| Model | Commits | First commit | Last commit | Credit lines of |
|---|---|---|---|---|
| Claude Sonnet 4.6 | 1 | 11 Jun 2026 | 11 Jun 2026 | Claude Code |
| Claude Fable 5 | 8 | 11 Jun 2026 | 11 Jun 2026 | Claude Code |
History
Method, History Method Archived is built from CRAN's archive records, its list of check deadlines and Bioconductor's package records. Every figure is counted to 28 Oct 2026, the day the data was read.Packages leaving
Archived and back
| Archived | Back | CRAN's reason | Kind |
|---|---|---|---|
| 4 Nov 2025 | 6 Nov 2025 | policy violation. On Internet access | Policy |
| 22 Oct 2021 | 30 Oct 2021 | repeated policy violation despite reminders. On Internet access | Policy |
| Version | Released | R | Events |
|---|---|---|---|
| 0.6.1 current | 19 Jun 2026 | 4.6.0 | |
| 0.6.0 | 14 Apr 2026 | 4.5.3 | |
| 0.5.10 | 6 Nov 2025 | 4.5.2 | Back on CRAN 6 Nov 2025 |
| 0.5.7 | 10 Feb 2024 | 4.3.2 | Archived 4 Nov 2025 “policy violation. On Internet access” |
| 0.5.6 | 4 Oct 2023 | 4.3.1 | |
| 0.5.5 | 23 Jan 2023 | 4.2.2 | |
| 0.5.4 | 7 Nov 2022 | 4.2.2 | |
| 0.5.3 | 25 Aug 2022 | 4.2.1 |
Earlier versions (20)
| Version | Released | R | Events |
|---|---|---|---|
| 0.5.2 | 19 Aug 2022 | 4.2.1 | |
| 0.5.0 | 8 Feb 2022 | 4.1.2 | |
| 0.4.8 | 30 Oct 2021 | 4.1.1 | Back on CRAN 30 Oct 2021 |
| 0.4.7 | 22 Oct 2021 | 4.1.1 | Archived 22 Oct 2021 “repeated policy violation despite reminders. On Internet access” |
| 0.4.6 | 21 Oct 2021 | 4.1.1 | |
| 0.4.5 | 20 Oct 2021 | 4.1.1 | |
| 0.4.4 | 19 Oct 2021 | 4.1.1 | |
| 0.4.3 | 8 Jun 2021 | 4.1.0 | |
| 0.4.2 | 9 Feb 2021 | 4.0.3 | |
| 0.4.1 | 27 Jan 2021 | 4.0.3 | |
| 0.4.0 | 16 Jan 2021 | 4.0.3 | |
| 0.3.2 | 16 Jul 2020 | 4.0.2 | |
| 0.3.1 | 23 Jun 2020 | 4.0.0 | |
| 0.3 | 22 Jun 2020 | 4.0.0 | |
| 0.2.2 | 12 May 2020 | 4.0.0 | |
| 0.2.1 | 5 Mar 2020 | 3.6.3 | |
| 0.2.0 | 28 Jul 2019 | 3.6.1 | |
| 0.1.8 | 20 Nov 2018 | 3.5.0 | |
| 0.1.7 | 4 Feb 2018 | 3.4.3 | |
| 0.1.6 | 24 Jan 2018 | 3.4.3 |
Release notes (0.6.1)
Bug fixes
set_cancensus_api_key()andset_cancensus_cache_path()withoverwrite = TRUE, install = TRUEno longer truncate the user's.Renvironwhen it does not already contain the corresponding keyget_statcan_wds_data()no longer caches error response bodies as data, andrefresh = TRUEnow bypasses the data cache as documentedremove_recalled_cached_data()no longer over-matches recalled vector IDs (e.g. a recall ofv_CA21_1no longer also flags cached data forv_CA21_10)get_census()now warns about recalled data when reading tabular data from the local cache, matching the geometry pathparent_census_vectors()andchild_census_vectors()now stop with "Unable to determine dataset" for mixed-dataset input instead of silently dropping vectorsfind_census_vectors()exact search now matches queries containing regex metacharacters (e.g."income ($)") literally instead of erroring or silently failingfind_census_vectors()semantic search now considers the best match for every query word (previously only the full phrase), and restores suffix n-grams dropped in 0.6.0find_census_vectors()keyword search no longer matches every vector when the query starts with a digit or punctuationvisualize_vector_hierarchy()accepts multi-vector character input as documented, and no longer labels nodes truncated bymax_depthas leaves (now marked with...)add_unique_names_to_region_list()now correctly preserves grouping of grouped inputlist_census_datasets()andlist_census_regions()staleness warnings now respectquiet = TRUE- API retry logic now retries HTTP 429 (rate limit) and 408 (timeout) responses, honoring
Retry-Afterheaders - The cache directory is now created recursively with a clear error on failure
Performance improvements
- New in-memory session cache for
list_census_vectors()andlist_census_regions(): repeated calls within a session no longer re-read and deserialize the cached file on every access (cache hits are ~1000x faster) parent_census_vectors()andchild_census_vectors()use a hash-based BFS traversal, 4-8x faster on deep hierarchies on top of the 0.6.0 improvements, with identical outputfind_census_vectors()semantic search prunes fuzzy-match candidates by length bound before computing Levenshtein distancesget_census()no longer scans the package library (installed.packages()) on spatial callsget_statcan_wds_metadata()parent ID extraction is vectorized (~5-10x faster metadata parsing for large levels such as DA)
Minor changes
- update links to refreshed CensusMapper