Skip to content

Commit 42d9739

Browse files
committed
Rebuild docs, without rgdal
1 parent 8d14a9c commit 42d9739

File tree

11 files changed

+18650
-26607
lines changed

11 files changed

+18650
-26607
lines changed

docs/colors.Rmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ The `domain` argument tells the color function the range of input values. You ca
4141

4242

4343
```{r message=FALSE,warning=FALSE,results='hide'}
44-
library(rgdal)
45-
4644
# From http://data.okfn.org/data/datasets/geo-boundaries-world-110m
47-
countries <- readOGR("https://rstudio.github.io/leaflet/json/countries.geojson")
45+
countries <- sf::st_read("https://rstudio.github.io/leaflet/json/countries.geojson")
4846
map <- leaflet(countries)
4947
```
5048

docs/colors.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,8 @@ <h3>Common parameters</h3>
293293
</div>
294294
<div id="coloring-continuous-data" class="section level3">
295295
<h3>Coloring continuous data</h3>
296-
<pre class="r"><code>library(rgdal)
297-
298-
# From http://data.okfn.org/data/datasets/geo-boundaries-world-110m
299-
countries &lt;- readOGR(&quot;https://rstudio.github.io/leaflet/json/countries.geojson&quot;)
296+
<pre class="r"><code># From http://data.okfn.org/data/datasets/geo-boundaries-world-110m
297+
countries &lt;- sf::st_read(&quot;https://rstudio.github.io/leaflet/json/countries.geojson&quot;)
300298
map &lt;- leaflet(countries)</code></pre>
301299
<p>We’ve loaded some shape data for countries, including a numeric field
302300
<code>gdp_md_est</code> which contains GDP estimates.</p>

docs/legends.Rmd

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@ The Leaflet package includes convenience functions for creating color legends. I
99
```{r, include = FALSE}
1010
library(leaflet)
1111
library(magrittr)
12-
13-
# Load rgdal in the include=FALSE block to squelch all of the warnings
14-
library(rgdal)
1512
```
1613

1714
```{r}
18-
library(rgdal)
19-
2015
# From http://data.okfn.org/data/datasets/geo-boundaries-world-110m
21-
countries <- readOGR("https://rstudio.github.io/leaflet/json/countries.geojson")
16+
countries <- sf::st_read("https://rstudio.github.io/leaflet/json/countries.geojson")
2217
map <- leaflet(countries) %>% addTiles()
2318
```
2419

0 commit comments

Comments
 (0)