-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from paleolimbot/development
fix CRAN problems of file size and test run time
- Loading branch information
Showing
7 changed files
with
242 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
^README\.md$ | ||
^\.travis\.yml$ | ||
^codecov\.yml$ | ||
^tests/testthat/Rplots\.pdf$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: ggspatial | ||
Type: Package | ||
Title: Spatial Data Framework for ggplot2 | ||
Version: 1.0.0 | ||
Version: 1.0.1 | ||
Authors@R: c( | ||
person("Dewey", "Dunnington", , "[email protected]", c("aut", "cre")), | ||
person("Brent", "Thorne", role = "ctb") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-702 KB
(38%)
README_files/figure-markdown_github/fig-layer-spatial-sf-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,73 @@ | ||
context("test-geom-osm.R") | ||
|
||
test_that("geom_osm works as intended", { | ||
load_longlake_data() | ||
# max test length was exceeded on CRAN, so these tests are skipped | ||
if (identical(Sys.getenv("NOT_CRAN"), "true")) { | ||
|
||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
test_that("geom_osm works as intended", { | ||
load_longlake_data() | ||
|
||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 26920) + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
|
||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 3857) + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 26920) + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
|
||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 3978) + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 3857) + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
|
||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile( | ||
data = tibble::tibble( | ||
type = c("osm", "stamenbw", "cartolight", "cartodark"), | ||
zoom = 13 | ||
), | ||
cachedir = system.file("rosm.cache", package = "ggspatial"), | ||
mapping = aes(type = type, zoom = zoom) | ||
) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 3857) + | ||
facet_wrap(~type) + | ||
labs(caption = "this should have the maptypes correspond to the backdrop") | ||
), | ||
"Zoom: 13" | ||
) | ||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile(zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 3978) + | ||
labs("This plot sould have they grey outlines line up with the OSM map beneath") | ||
), | ||
"Zoom: 13" | ||
) | ||
|
||
}) | ||
expect_message( | ||
print( | ||
ggplot() + | ||
annotation_map_tile( | ||
data = tibble::tibble( | ||
type = c("osm", "stamenbw", "cartolight", "cartodark"), | ||
zoom = 13 | ||
), | ||
cachedir = system.file("rosm.cache", package = "ggspatial"), | ||
mapping = aes(type = type, zoom = zoom) | ||
) + | ||
geom_sf(data = longlake_waterdf, fill = NA, col = "grey50") + | ||
coord_sf(crs = 3857) + | ||
facet_wrap(~type) + | ||
labs(caption = "this should have the maptypes correspond to the backdrop") | ||
), | ||
"Zoom: 13" | ||
) | ||
|
||
}) | ||
|
||
} |
Oops, something went wrong.