Skip to content

Commit 797ec42

Browse files
committed
Avoid hrbrmstr/albersusa since it depends on retired rgdal package
1 parent 8c3acd6 commit 797ec42

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ ByteCompile: yes
9797
Encoding: UTF-8
9898
LazyData: TRUE
9999
RoxygenNote: 7.3.2
100-
Config/Needs/Website: hrbrmstr/albersusa
101100
SystemRequirements: GNU make
101+
Roxygen: list(markdown = TRUE)

vignettes/articles/mapview_07-pipe.Rmd

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ vignette: >
1313

1414
```{r setup, echo=FALSE, message=FALSE}
1515
knitr::opts_chunk$set(fig.width = 8.83, message = FALSE, warning = FALSE)
16-
# remotes::install_github("hrbrmstr/albersusa")
1716
```
1817

1918
**mapview** can be used in piped expressions using `%>%`, most likely at the very end of it...
@@ -27,9 +26,10 @@ library(mapview)
2726
library(poorman)
2827
library(leaflet)
2928
library(sf)
30-
# GitHub: hrbrmstr/albersusa
31-
library(albersusa)
29+
```
30+
3231

32+
```{r pipe1a-3}
3333
franconia %>%
3434
st_union %>%
3535
plot
@@ -110,20 +110,3 @@ franconia %>%
110110
```
111111

112112
<br>
113-
114-
## using `native.crs` for a USA composite map
115-
116-
```{r pipe8a}
117-
albersusa::usa_composite("laea") %>%
118-
mapview(native.crs = TRUE, zcol = "pop_2014", legend = TRUE)
119-
```
120-
121-
<br>
122-
123-
## without `native.crs`
124-
125-
```{r pipe8b}
126-
albersusa::usa_composite("laea") %>%
127-
mapview(zcol = "pop_2014", legend = TRUE)
128-
```
129-

0 commit comments

Comments
 (0)