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
@@ -95,8 +95,7 @@ get_census <- function (dataset, regions, level=NA, vectors=c(), geo_format = NA
95
95
digest::digest(param_string, algo="md5"), ".rda")
96
96
if (!use_cache||!file.exists(data_file)) {
97
97
if (!have_api_key) {
98
-
stop(paste("No API key set. Use Sys.setenv(CM_API_KEY = '<your API key>') or",
99
-
"options(cancensus.api_key = '<your API key>') to set one."))
98
+
stop(paste("No API key set. Use set_api_key('<your API ket>`) to set one, or set_api_key('<your API ket>`, install = TRUE) to save is permanently in our .Renviron."))
100
99
}
101
100
url<- paste0(base_url, "data.csv")
102
101
response<-if (!quiet) {
@@ -147,8 +146,7 @@ get_census <- function (dataset, regions, level=NA, vectors=c(), geo_format = NA
147
146
geo_file<- cache_path(geo_base_name, ".geojson")
148
147
if (!use_cache||!file.exists(geo_file)) {
149
148
if (!have_api_key) {
150
-
stop(paste("No API key set. Use Sys.setenv(CM_API_KEY = '<your API key>') or",
151
-
"options(cancensus.api_key = '<your API key>') to set one."))
149
+
stop(paste("No API key set. Use set_api_key('<your API ket>`) to set one, or set_api_key('<your API ket>`, install = TRUE) to save is permanently in our .Renviron."))
152
150
}
153
151
url<- paste0(base_url, "geo.geojson")
154
152
response<-if (!quiet) {
@@ -163,6 +161,7 @@ get_census <- function (dataset, regions, level=NA, vectors=c(), geo_format = NA
163
161
if (!quiet) message("Reading geo data from local cache.")
stop(paste("No API key set. Use options(cancensus.api_key = 'XXX') or",
78
-
"Sys.setenv(CM_API_KEY = 'XXX') to set one."))
77
+
stop(paste("No API key set. Use set_api_key('<your API ket>`) to set one, or set_api_key('<your API ket>`, install = TRUE) to save is permanently in our .Renviron."))
Copy file name to clipboardExpand all lines: cran-comments.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
# Update - v0.4.1
2
+
3
+
- CRAN check NOTES regarding marked UTF-8 strings are understood but use of non-ASCII characters is intentional due to bilingual EN/FR source data and metadata from national statistics agency.
4
+
- Fix minor problem where API key wasn't always picked up if not set correctly as environment variable.
5
+
- Fix warning when `t` column not present in downloaded data.
6
+
1
7
# Update - v.0.4.0
2
8
3
9
- Added `get_intersecting_geometry` function for new CensusMapper endpoint
@@ -6,9 +12,9 @@
6
12
7
13
## Update - v.0.3.2
8
14
9
-
- Add functionality for 1996 census and more refined geographies
10
-
- Expanded vignettes
11
-
- Fix minor bugs flagged by users
15
+
- Add functionality for 1996 census and more refined geographies.
0 commit comments