Skip to content

Commit 328b743

Browse files
committed
Move extdata to data
1 parent 911a9ea commit 328b743

File tree

8 files changed

+83
-3
lines changed

8 files changed

+83
-3
lines changed

R/data.R

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,36 @@ if (file.exists('inst/csv/uspop2000.csv')) {
2424
)
2525
}
2626
}
27+
28+
#' @docType data
29+
#' @name atlStorms2005
30+
#' @title Atlantic Ocean storms 2005
31+
#' @description Atlantic Ocean storms 2005
32+
#' @details This dataset contains storm tracks for selected storms
33+
#' in the Atlantic Ocean basin for the year 2005
34+
#' @format \code{sp::SpatialLinesDataFrame}
35+
NULL
36+
37+
#' @docType data
38+
#' @name gadmCHE
39+
#' @title Administrative borders of Switzerland (level 1)
40+
#' @description Administrative borders of Switzerland (level 1)
41+
#' @details This dataset comes from \url{http://gadm.org}.
42+
#' It was downloaded using \code{\link{getData}}.
43+
#' @format \code{sp::SpatialPolygonsDataFrame}
44+
#' @source
45+
#' \url{http://gadm.org}
46+
NULL
47+
48+
#'
49+
#' @docType data
50+
#' @name breweries91
51+
#' @title Selected breweries in Franconia
52+
#' @description Selected breweries in Franconia (zip code starting with 91...)
53+
#' @details This dataset contains selected breweries in Franconia. It is a
54+
#' subset of a larger database that was compiled by students at the
55+
#' University of Marburg for a seminar called
56+
#' "The Geography of Beer, sustainability in the food industry"
57+
#' @format \code{sp::SpatialPointsDataFrame}
58+
NULL
59+
File renamed without changes.
File renamed without changes.
File renamed without changes.

man/atlStorms2005.Rd

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/breweries91.Rd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/gadmCHE.Rd

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-normalize-2.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pgontest <- function(x) {
1515
leaflet(x) %>% addTiles() %>% addPolygons()
1616
}
1717

18-
gadmCHE <- readRDS(system.file("extdata", "gadmCHE.rds", package = "leaflet"))
1918
poldata <- st_as_sf(gadmCHE)
2019

2120
(r1 <- pgontest(poldata))
@@ -33,7 +32,6 @@ expect_maps_equal(r1, r5)
3332

3433
### lines -----------------------------------------------------------------
3534

36-
atlStorms2005 <- readRDS(system.file("extdata", "atlStorms2005.rds", package = "leaflet"))
3735
lindata <- st_as_sf(atlStorms2005)
3836

3937
plinetest <- function(x) {
@@ -57,7 +55,6 @@ expect_maps_equal(l3, l7)
5755
expect_maps_equal(l3, l8)
5856

5957
### points ----------------------------------------------------------------
60-
breweries91 <- readRDS(system.file("extdata", "breweries91.rds", package = "leaflet"))
6158
ptsdata <- st_as_sf(breweries91)
6259
class(ptsdata) # sf, data.frame
6360
class(st_geometry(ptsdata)) # sfc_POINT, sfc

0 commit comments

Comments
 (0)