Skip to content

cansim

0.5.1Package record

Accessing Statistics Canada Data Table and Vectors

0packages depend
19.8Kdownloads / year
74.8%test coverage
13/13flavors OK

Overview

About

Searches for, accesses, and retrieves Statistics Canada data tables, as well as individual vectors, as tidy data frames. This package enriches the tables with metadata, deals with encoding issues, allows for bilingual English or French language data retrieval, and bundles convenience functions to make it easier to work with retrieved table data. For more efficient data access the package allows for caching data in a local database and database level filtering, data manipulation and summarizing.

Changes in 0.5.1

Minor changes

  • table downloads now warn about repaired member labels the same way they warn about repaired column names. A table whose column names are clean but whose labels carry a non-breaking space, for example the province names in 13-10-0383, was repaired silently because the metadata parser assumed the column name warning had already covered it. Every download path reports it once now, and the warning is silenced by the same options(cansim.suppress_repair_warnings=TRUE) (#169)
  • the repair warnings, the warning about a cache built before the repair and the warning about vector requests that return no data are no longer hard-wrapped to the width R reports at the time they are raised. That width matched the window only by luck, so the text broke in the middle of sentences in RStudio panes, knitted documents and resized terminals. Each sentence now starts on its own line and the window wraps the rest at its actual width
  • the vignettes on listing tables, retrieving vectors and working with hierarchies ship with the package again. They had been excluded from the CRAN build since 2018 and were only reachable on the pkgdown site

From NEWS.md in the release

Install

Health

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

none known

Documentation

In release 0.5.1
READMEYes · 1,361 wordsVignettesYes · 6 · evaluation depends on the environmentNEWSYes · 100% structured · mentions 0.5.1Citation fileYes · software entry onlyWebsiteYes · pkgdown
Help pages
53 (14 internal)
Examples that run
4%2 run in a plain check · 20 only when donttest examples are enabled (R CMD check --as-cran) · 24 never run
Exported functions with examples
100%
Documented parameters
99%
Return-value docs
93%
Help pages citing references
2%

Downloads

19.8K
CRAN downloads in the past year
Rank #2,726 · ~54/day · ~1.7K/mo
Daily download trend is not available in this view yet.
2.3K30 days
5.6K90 days
19.8K1 year
Compare downloads with other packages →
Also on229 r2u19 autocran1.3K conda_forge88 c2d4u

Repository

51Stars
7Forks
6Open issues
0Open PRs
25Releases
506Commits
6Commit identities
506 commits · Last activity 2026-09-16 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
70
Median days to close, 50 most recently updated closed PRs
14

Stars over time

2025-09-20 · 472026-08-17 · 51
PracticesBeta

6 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/mountainmath/cansim on 2026-10-21.

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-09-16

pkgdown site last built 2026-09-16

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 2025-11-15
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 49 crediting it in the message
Models named in its commits
  • Claude Opus 527 commits · Aug 2026
  • Claude Opus 4.511 commits · Jan 2026
  • Claude Fable 5.18 commits · Sep 2026
  • Claude Fable 53 commits · Aug 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing cansim adds 45 packages (26 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, RSQLite 4.2 MB, arrow 4.2 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 (2)
Author, Maintainer since 0.2.2 (2018)
Releases (27)

Pick two releases to compare their code metrics.

  • 0.5.1Latest
    record
    2026-09-16 · current release · diff ↗
  • 0.5.0
    record
    2026-08-19 · diff ↗ ·
    added 4 exports
    disconnect_cansim_connection, get_cansim_changed_series_data_for_coordinates, get_cansim_changed_series_data_for_vectors, get_cansim_changed_series_list
  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.4
    record
    2025-08-19 · diff ↗ ·
    added 2 exports
    set_cansim_cache_path, show_cansim_cache_path
  • 0.4.3
    record
    2025-05-30 · diff ↗
  • 0.4.2
    record
    2025-05-12 · diff ↗ ·
    added 3 exports
    add_cansim_vectors_to_template, get_cansim_series_info_cube_coord, get_cansim_table_template
  • R
    R 4.5.0 released · 2025-04-11
  • 0.4.1
    record
    2025-03-15 · diff ↗
  • 0.4
    record
    2025-02-24 · diff ↗ ·
    added 4 exports
    cansim_repartition_cached_table, get_cansim_connection, list_cansim_cached_tables, remove_cansim_cached_tables
  • 0.3.17
    record
    2024-11-06 · diff ↗ ·
    removed 1 export
    get_cansim_ndm
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.16
    record
    2024-03-12 · diff ↗
  • 0.3.15
    record
    2023-10-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.14
    record
    2023-01-20 · diff ↗
  • 0.3.13
    record
    2022-11-07 · diff ↗
Show 26 earlier eventsHide 26 earlier events
  • 0.3.12
    record
    2022-07-12 · diff ↗
  • 0.3.11
    record
    2022-05-10 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.3.10
    record
    2021-09-27 · diff ↗
  • unarchivedReturned to CRAN
    2021-07-29
  • 0.3.9
    record
    2021-07-29 · diff ↗ ·
    added 1 export
    get_cansim_key_release_schedule
  • archivedRemoved from CRAN
    2021-07-25
    repeated violation of the CRAN policy Internet access, again
  • unarchivedReturned to CRAN
    2021-05-27
  • 0.3.8
    record
    2021-05-27 · diff ↗ ·
    removed 1 export
    adjust_cansim_values_by_variable
    added 1 export
    get_cansim_table_last_release_date
  • archivedRemoved from CRAN
    2021-05-24
    policy violation on Internet access
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.7
    record
    2021-05-10 · diff ↗
  • 0.3.6
    record
    2021-05-08 · diff ↗ ·
    added 5 exports
    collect_and_normalize, disconnect_cansim_sqlite, get_cansim_sqlite, list_cansim_sqlite_cached_tables, remove_cansim_sqlite_cached_table
  • R
    R 4.0.0 released · 2020-04-24
  • unarchivedReturned to CRAN
    2020-03-13
  • 0.3.5
    record
    2020-03-13 · diff ↗
  • archivedRemoved from CRAN
    2020-03-09
    policy violation On Internet access, repeatedly
  • 0.3.4
    record
    2020-03-05 · diff ↗ ·
    added 4 exports
    get_cansim_code_set, get_cansim_table_short_notes, list_cansim_cubes, search_cansim_cubes
  • 0.3.3
    record
    2019-10-16 · diff ↗
  • 0.3.2
    record
    2019-08-26 · diff ↗
  • 0.3.1
    record
    2019-08-19 · diff ↗
  • 0.3.0
    record
    2019-07-18 · diff ↗ ·
    added 1 export
    add_provincial_abbreviations
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.3
    record
    2019-01-07 · diff ↗
  • 0.2.2
    record
    2018-12-18
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-12-18
Total releases
27 / 8 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Bundled data
17 KB / 1 file
Download size
734 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("cansim")

The package provides a citation file, so citation() returns the authors' own entry.

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 cansim version 0.5.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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