Skip to content

Commit

Permalink
Fixed issue to nake sure geobr uses suggested packages conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Jan 1, 2024
1 parent 7295055 commit 9e70a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r-package/vignettes/intro_to_geobr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ggplot() +


Download all geographic areas within a state at a given year
```{r eval=TRUE, message=FALSE, warning=FALSE, results='hide'}
```{r eval=use_suggested_pkgs, message=FALSE, warning=FALSE, results='hide'}
# All municipalities in the state of Minas Gerais
muni <- read_municipality(code_muni = "MG",
year = 2007,
Expand All @@ -113,7 +113,7 @@ head(muni)

If the parameter `code_` is not passed to the function, geobr returns the data for the whole country by default.

```{r eval=TRUE, message=FALSE, warning=FALSE}
```{r eval=use_suggested_pkgs, message=FALSE, warning=FALSE}
# read all intermediate regions
inter <- read_intermediate_region(
year = 2017,
Expand Down

0 comments on commit 9e70a52

Please sign in to comment.