Skip to content

Commit 413a959

Browse files
committed
system.file("shapes/world.gpkg", package = "spData") not .shp
Close #1151
1 parent 68e7081 commit 413a959

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

02-spatial-data.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ Unlike the function `st_read()`, which returns attributes stored in a base R `da
281281
This is demonstrated below:
282282

283283
```{r, message=FALSE}
284-
world_dfr = st_read(system.file("shapes/world.shp", package = "spData"))
285-
world_tbl = read_sf(system.file("shapes/world.shp", package = "spData"))
284+
world_dfr = st_read(system.file("shapes/world.gpkg", package = "spData"))
285+
world_tbl = read_sf(system.file("shapes/world.gpkg", package = "spData"))
286286
class(world_dfr)
287287
class(world_tbl)
288288
```

code/chapters/02-spatial-data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ world_mini
100100

101101

102102
## ---------------------------------------------------------------------------------------------------
103-
world_dfr = st_read(system.file("shapes/world.shp", package = "spData"))
104-
world_tbl = read_sf(system.file("shapes/world.shp", package = "spData"))
103+
world_dfr = st_read(system.file("shapes/world.gpkg", package = "spData"))
104+
world_tbl = read_sf(system.file("shapes/world.gpkg", package = "spData"))
105105
class(world_dfr)
106106
class(world_tbl)
107107

0 commit comments

Comments
 (0)