You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,18 @@
1
+
# cancensus - 0.5.3
2
+
- Added a check and context menu to install `sf` package when user requests spatial data but does not have the required package installed as opposed to stopping with an error.
3
+
- fixes a bug in the local data recall check
4
+
5
+
# cancensus - 0.5.2
6
+
- resolved broken and relocated links picked up in CRAN pretesting
7
+
8
+
# cancensus - 0.5.1
9
+
- Added functionality for users to detect and remove locally cached data that has been recalled by Statistics Canada
10
+
- added a check on initial `get_census` call that produces a warning if locally cached data has been recalled by Statistics Canada
11
+
- added option to retrieve higher-resolution geometries in `get_census`
12
+
13
+
## Minor changes
14
+
- renamed get/set cache/api_key functions to avoid name conflicts with related packages
15
+
1
16
# cancensus - 0.5.0
2
17
3
18
## Minor changes
@@ -81,7 +96,7 @@
81
96
82
97
## Major changes
83
98
- Added a `max_leaves_option` for the `search_census_vectors` function. Adds functionality to set maximum depth for child census vectors, i.e. `max_level=NA` as an additional parameter. Then e.g. `max_level=1` would only get direct children and no grandchildren.
84
-
- Resolved issues with mislabelled CD UID for CSD level data
99
+
- Resolved issues with mislabeled CD UID for CSD level data
85
100
- Improve reliability of character/numeric alignments for geographic UIDS
86
101
-`get_census_geography` is now soft deprecated and rolled into the standard `get_census` with parameters
Copy file name to clipboardExpand all lines: R/cancensus.R
+46-14Lines changed: 46 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,11 @@
11
11
#' @param regions A named list of census regions to retrieve. Names must be valid census aggregation levels.
12
12
#' @param level The census aggregation level to retrieve, defaults to \code{"Regions"}. One of \code{"Regions"}, \code{"PR"}, \code{"CMA"}, \code{"CD"}, \code{"CSD"}, \code{"CT"}, \code{"DA"}, \code{"EA"} (for 1996), or \code{"DB"} (for 2001-2016).
13
13
#' @param vectors An R vector containing the CensusMapper variable names of the census variables to download. If no vectors are specified only geographic data will get downloaded.
14
-
#' @param geo_format By default is set to \code{NA} and appends no geographic information. To include geographic information with census data, specify one of either \code{"sf"} to return an \code{\link[sf]{sf}} object (requires the \code{sf} package) or \code{"sp"} to return a \code{\link[sp]{SpatialPolygonsDataFrame-class}} object (requires the \code{rgdal} package).
14
+
#' @param geo_format By default is set to \code{NA} and appends no geographic information. To include geographic information with census data, specify one of either \code{"sf"} to return an \code{\link[sf]{sf}} object (requires the \code{sf} package) or \code{"sp"} to return a \code{\link[sp]{SpatialPolygonsDataFrame-class}} object (requires the \code{rgdal} package). If user requests geo-spatial data and neither package is available, a context menu will prompt to install the \code{sf} package.
15
+
#' @param resolution Resolution of the geographic data. {cancensus} will download simplified geometries by default. For lower level geometries like DB or DA this will be very close to the high resolution data.
16
+
#' Simplification generally increases as the geographic aggregation level increases.
17
+
#' If high resolution geometries are required
18
+
#' then this option can be set to 'high'. By default this setting is set to \code{'simplified'}.
15
19
#' @param labels Set to "detailed" by default, but truncated Census variable names can be selected by setting labels = "short". Use \code{label_vectors(...)} to return variable label information in detail.
16
20
#' @param use_cache If set to TRUE (the default) data will be read from the local cache if available.
17
21
#' @param quiet When TRUE, suppress messages and warnings.
0 commit comments