Skip to content

Commit 4f8b26b

Browse files
authored
Merge pull request #127 from mountainMath/v0.3.18
V0.4
2 parents f41f63f + 2aee9cb commit 4f8b26b

100 files changed

Lines changed: 3312 additions & 1338 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DESCRIPTION

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
11
Package: cansim
22
Type: Package
33
Title: Accessing Statistics Canada Data Table and Vectors
4-
Version: 0.3.17
4+
Version: 0.4
55
Authors@R: c(
6-
person("Jens", "von Bergmann", email = "jens@mountainmath.ca", role = c("cre")),
6+
person("Jens", "von Bergmann", email = "jens@mountainmath.ca", role = c("aut","cre")),
77
person("Dmitry", "Shkolnik", email = "shkolnikd@gmail.com", role = c("aut")))
88
Maintainer: Jens von Bergmann <jens@mountainmath.ca>
9-
Description: Searches for, accesses, and retrieves new-format and old-format Statistics Canada data
10-
tables, as well as individual vectors, as tidy data frames. This package deals with encoding issues, allows for
11-
bilingual English or French language data retrieval, and bundles convenience functions
12-
to make it easier to work with retrieved table data. Optional caching features are provided.
9+
Description: Searches for, accesses, and retrieves Statistics Canada data
10+
tables, as well as individual vectors, as tidy data frames.
11+
This package enriches the tables with metadata, deals
12+
with encoding issues, allows for bilingual English or French language data retrieval, and bundles
13+
convenience functions to make it easier to work with retrieved table data. For more efficient data
14+
access the package allows for caching data in a local database and database level filtering, data
15+
manipulation and summarizing.
1316
License: MIT + file LICENSE
1417
Encoding: UTF-8
1518
ByteCompile: yes
1619
NeedsCompilation: no
1720
LazyData: true
18-
Depends: R (>= 2.10)
19-
Imports: digest (>= 0.1),
20-
dplyr (>= 0.7),
21+
Depends: R (>= 4.1)
22+
Imports: digest (>= 0.6),
23+
dplyr (>= 1.1),
2124
httr (>= 1.0.0),
22-
jsonlite (>= 1.0),
23-
readr,
24-
rlang,
25-
xml2,
26-
rvest,
27-
stringr,
28-
purrr,
29-
tibble,
30-
utils,
31-
DBI,
32-
RSQLite
25+
tidyr (>= 1.3),
26+
readr (>= 2.1),
27+
rlang (>= 1.1),
28+
stringr (>= 1.5),
29+
purrr (>= 1.0),
30+
tibble (>= 3.2),
31+
arrow (>= 18.1),
32+
DBI (>= 1.2),
33+
RSQLite (>= 2.3),
34+
utils (>= 4.3),
35+
dbplyr (>= 2.5)
3336
RoxygenNote: 7.3.1
34-
Suggests: knitr,
37+
Suggests:
38+
knitr,
3539
rmarkdown,
36-
scales,
37-
tidyr,
3840
ggplot2,
39-
dbplyr
41+
scales,
42+
testthat (>= 3.0.0)
4043
URL: https://github.com/mountainMath/cansim, https://mountainmath.github.io/cansim/, https://www.statcan.gc.ca/
4144
BugReports: https://github.com/mountainMath/cansim/issues
4245
VignetteBuilder: knitr
4346
Language: en-CA
47+
Config/testthat/edition: 3

NAMESPACE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
export(add_provincial_abbreviations)
44
export(cansim_old_to_new)
5+
export(cansim_repartition_cached_table)
56
export(categories_for_level)
67
export(collect_and_normalize)
78
export(disconnect_cansim_sqlite)
@@ -10,6 +11,7 @@ export(get_cansim_changed_tables)
1011
export(get_cansim_code_set)
1112
export(get_cansim_column_categories)
1213
export(get_cansim_column_list)
14+
export(get_cansim_connection)
1315
export(get_cansim_cube_metadata)
1416
export(get_cansim_data_for_table_coord_periods)
1517
export(get_cansim_key_release_schedule)
@@ -25,10 +27,12 @@ export(get_cansim_table_url)
2527
export(get_cansim_vector)
2628
export(get_cansim_vector_for_latest_periods)
2729
export(get_cansim_vector_info)
30+
export(list_cansim_cached_tables)
2831
export(list_cansim_cubes)
2932
export(list_cansim_sqlite_cached_tables)
3033
export(list_cansim_tables)
3134
export(normalize_cansim_values)
35+
export(remove_cansim_cached_tables)
3236
export(remove_cansim_sqlite_cached_table)
3337
export(search_cansim_cubes)
3438
export(search_cansim_tables)
@@ -38,10 +42,6 @@ importFrom(purrr,map)
3842
importFrom(rlang,":=")
3943
importFrom(rlang,.data)
4044
importFrom(rlang,set_names)
41-
importFrom(rvest,html_node)
42-
importFrom(rvest,html_nodes)
43-
importFrom(rvest,html_text)
4445
importFrom(stats,na.omit)
4546
importFrom(stats,setNames)
46-
importFrom(tibble,as.tibble)
4747
importFrom(utils,head)

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# cansim 0.4
2+
## Major changes
3+
* add support for local caching in parquet and feather formats
4+
* uniform interface for sqlite, parquet, and feather caching
5+
* principled approach to column order
6+
## Minor changes
7+
* fix problem with inconsistent type parsing of notes
8+
* better support for french language when accessing data by vector or coordinate
9+
* tests
10+
111
# cansim 0.3.17
212
## Minor changes
313
* fix problem with reading French tables released by the census division

0 commit comments

Comments
 (0)