Skip to content

Commit 1dc032f

Browse files
committed
Add new docs
1 parent 252419a commit 1dc032f

5 files changed

Lines changed: 320 additions & 314 deletions

File tree

R/utils-url.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ download_url <- function(
217217

218218
if (httr2::resp_is_error(resp)) {
219219
unlink(file_local, force = TRUE)
220-
get_status_code <- httr2::resp_status(resp) # nolint
221-
get_status_desc <- httr2::resp_status_desc(resp) # nolint
220+
get_status_code <- trimws(httr2::resp_status(resp)) # nolint
221+
get_status_desc <- trimws(httr2::resp_status_desc(resp)) # nolint
222222

223223
cli::cli_alert_danger(
224224
c(

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,16 @@ country_lines <- gisco_get_nuts(
163163
)
164164
```
165165

166-
We now download the data from Eurostat:
166+
Next, download the data from Eurostat:
167167

168168
``` r
169169
# Use eurostat
170170
popdens <- get_eurostat("demo_r_d3dens") |>
171171
filter(TIME_PERIOD == "2021-01-01")
172+
#>
173+
indexed 0B in 0s, 0B/s
174+
indexed 2.15GB in 0s, 2.15GB/s
175+
172176
```
173177

174178
Finally, we merge and manipulate the data to create the final plot:
@@ -256,7 +260,7 @@ alt="Population density in 2021" />
256260

257261
## Caching
258262

259-
Large datasets (e.g., LAU or high-resolution files) can exceed 50MB.
263+
Large datasets (e.g., LAU or high-resolution files) can exceed 50 MB.
260264
Use:
261265

262266
``` r

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
"applicationCategory": "cartography",
267267
"isPartOf": "http://ropengov.org/",
268268
"keywords": ["ropengov", "r", "spatial", "api-wrapper", "rstats", "r-package", "eurostat", "gisco", "thematic-maps", "eurostat-data", "cran", "ggplot2", "gis", "cran-r"],
269-
"fileSize": "1926.864KB",
269+
"fileSize": "1924.217KB",
270270
"citation": [
271271
{
272272
"@type": "SoftwareSourceCode",

0 commit comments

Comments
 (0)