Skip to content

Commit 1ca8f25

Browse files
committed
geobr v1.8.0
1 parent a527b28 commit 1ca8f25

File tree

8 files changed

+873
-831
lines changed

8 files changed

+873
-831
lines changed

r-package/DESCRIPTION

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: geobr
33
Title: Download Official Spatial Data Sets of Brazil
4-
Version: 1.7.0999
4+
Version: 1.8.0
55
Authors@R: c(person(given="Rafael H. M.", family="Pereira", email="rafa.pereira.br@gmail.com", role=c("aut", "cre"), comment = c(ORCID = "0000-0003-2125-7465")),
66
person(given="Caio Nogueira", family="Goncalves", role=c("aut")),
77
person(given="Paulo Henrique Fernandes de", family="Araujo", role=c("ctb")),
@@ -29,20 +29,22 @@ Encoding: UTF-8
2929
LazyData: TRUE
3030
Depends:
3131
R (>= 3.5.0)
32-
Suggests:
33-
covr,
34-
dplyr (>= 0.8-3),
35-
ggplot2 (>= 3.3.1),
36-
knitr,
37-
rmarkdown (>= 2.6),
38-
testthat
3932
Imports:
4033
curl,
4134
data.table,
4235
httr (>= 1.4.1),
4336
methods,
4437
sf (>= 0.9-3),
4538
utils
39+
Suggests:
40+
censobr,
41+
covr,
42+
dplyr (>= 0.8-3),
43+
ggplot2 (>= 3.3.1),
44+
knitr,
45+
rmarkdown (>= 2.6),
46+
scales,
47+
testthat
4648
RoxygenNote: 7.2.3
4749
Roxygen: list(markdown = TRUE)
4850
VignetteBuilder: knitr

r-package/NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
**New function**
55
- `read_capitals()` to download either a spatial `sf` object with the location of the municipal seats (sede dos municipios) of state capitals, or a `data.frame` with the names of codes of state capitals. [Closes #243](https://github.com/ipeaGIT/geobr/issues/243)
66

7+
**Minor changes**
8+
- Update intro vignette to show how to use geobr together with the new [**censobr**](https://ipeagit.github.io/censobr/index.html) sister package.
9+
710
**Bug fixes**
11+
812
- fixed bug from conflict between `sf` and `data.table` that was messing with plot extent. [Closes #284](https://github.com/ipeaGIT/geobr/issues/284).
913
- fixed bug from conflicts between `plotly` and `data.table`. [Closes #279](https://github.com/ipeaGIT/geobr/issues/279).
1014
- fixed bug in `cep_to_state()` function. [Closes #317](https://github.com/ipeaGIT/geobr/issues/317).

r-package/R/read_health_facilities.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' column `data_source`. Periodically the coordinates are revised with the
1515
#' objective of improving the quality of the data." The date of the last data
1616
#' update is registered in the database in the columns `date_update` and
17-
#' `year_update`. More information available at \url{https://dados.gov.br/dataset?q=CNES}.
17+
#' `year_update`. More information in the CNES data set available at \url{https://dados.gov.br/}.
1818
#' These data use Geodetic reference system "SIRGAS2000" and CRS(4674).
1919
#' @template showProgress
2020
#'

r-package/cran-comments.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
## -- R CMD check results -------------------------------------- geobr 1.6.599909 ----
2-
Duration: 3m 49.4s
1+
## ── R CMD check results ───────────────────────────────────── geobr 1.8.0 ────
2+
Duration: 8m 3.8s
33

4-
> checking data for non-ASCII characters ... NOTE
4+
checking data for non-ASCII characters ... NOTE
55
Note: found 58 marked UTF-8 strings
66

7-
0 errors v | 0 warnings v | 1 note x
7+
0 errors | 0 warnings | 1 note
88

9-
* This is a submission to get the geobr package back on CRAN.
109

11-
The geobr package was suspended on CRAN on January 2022 because it continuously failed CRAN's policy to "fail gracefully" when there are any internet connection problems.
12-
13-
We have scrutinized the package, which has now gone through structural changes to address this issue. Here are the main changes:
14-
1. New internal function `check_connection()` and tests that cover cases when users have no internet connection, whem url links are offline, time out or work normally.
15-
2. All functions that require internet connection now use `check_connection()` and return informative messages when url links are offline or timeout.
16-
3. The data used in the package is now simultaneously stored in two independent servers, where one of them is used as a backup link. In other words, the geobr will download the data from server 1. If, for some reason, the download fails because of internet connection problems, then geobr tries to download the data from server 2. If this second attempt fails, then the package returns `invisible(NULL)` with an informative message.
17-
18-
We believe these changes and the redundancy in data storage have made the geobr package substantially more robust and in line with CRAN's policies.
10+
* Update to version v.1.8.0 with one new function and a few bug fixes.
1911

r-package/man/read_health_facilities.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)