CRAN Package Check Results for Package ggspatial

Last updated on 2018-10-19 01:46:24 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.1 5.67 138.84 144.51 OK
r-devel-linux-x86_64-debian-gcc 1.0.1 5.85 79.72 85.57 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.1 121.16 ERROR
r-devel-linux-x86_64-fedora-gcc 1.0.1 119.97 ERROR
r-devel-windows-ix86+x86_64 1.0.1 19.00 200.00 219.00 OK
r-patched-linux-x86_64 1.0.1 4.15 84.36 88.51 ERROR
r-patched-solaris-x86 1.0.1 239.30 NOTE
r-release-linux-x86_64 1.0.1 5.35 85.74 91.09 ERROR
r-release-windows-ix86+x86_64 1.0.1 19.00 140.00 159.00 OK
r-release-osx-x86_64 1.0.1 NOTE
r-oldrel-windows-ix86+x86_64 1.0.1 12.00 227.00 239.00 OK
r-oldrel-osx-x86_64 1.0.1 NOTE

Check Details

Version: 1.0.1
Check: examples
Result: ERROR
    Running examples in ‘ggspatial-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: layer_spatial
    > ### Title: Turn a spatial object into a ggplot2 layer
    > ### Aliases: layer_spatial annotation_spatial layer_spatial.default
    > ### annotation_spatial.default
    >
    > ### ** Examples
    >
    > load_longlake_data()
    >
    > ggplot() +
    +
    + # annotation_spatial() layers don't train the scales, so data stays central
    + annotation_spatial(longlake_roadsdf, size = 2, col = "black") +
    + annotation_spatial(longlake_roadsdf, size = 1.6, col = "white") +
    +
    + # raster layers train scales and get projected automatically
    + layer_spatial(longlake_depth_raster, aes(alpha = stat(band1)), fill = "darkblue") +
    + scale_alpha_continuous(na.value = 0) +
    +
    + # layer_spatial() layers train the scales
    + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) +
    +
    + # spatial-aware automagic scale bar
    + annotation_scale(location = "tl") +
    +
    + # spatial-aware automagic north arrow
    + annotation_north_arrow(location = "br", which_north = "true")
    Error in FUN(X[[i]], ...) : object 'DEPTH.M' not found
    Calls: <Anonymous> ... <Anonymous> -> f -> scales_add_defaults -> lapply -> FUN
    Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.0.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [23s/32s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(ggspatial)
     Loading required package: ggplot2
     >
     > test_check("ggspatial")
     ── 1. Error: deprecated tests run without error (@test-deprecated.R#23) ───────
     Some .id values are present in attrs and missing in fortified
     1: print(ggplot() + geom_spatial(longlake_depthdf)) at testthat/test-deprecated.R:23
     2: geom_spatial(longlake_depthdf)
     3: geom_spatial.default(longlake_depthdf)
     4: spatial_fortify(data, attribute_table)
     5: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     6: spatial_fortify.default(x, attrs, ...)
     7: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 2. Error: old stat project works (@test-deprecated.R#109) ──────────────────
     object 'DEPTH.M' not found
     1: expect_silent(print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))) at testthat/test-deprecated.R:109
     2: quasi_capture(enquo(object), evaluate_promise)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning,
     message = handle_message))
     5: force(code)
     6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
     7: withVisible(code)
     8: eval_bare(get_expr(quo), get_env(quo))
     9: print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     10: print.ggplot(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     11: ggplot_build(x)
     12: ggplot_build.ggplot(x)
     13: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     14: f(l = layers[[i]], d = data[[i]])
     15: l$compute_aesthetics(d, plot)
     16: f(..., self = self)
     17: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     18: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     19: FUN(X[[i]], ...)
    
     ── 3. Error: deprecated OSM tiles work (@test-deprecated.R#147) ───────────────
     Some .id values are present in attrs and missing in fortified
     1: expect_message(print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map()),
     "Zoom: 15") at testthat/test-deprecated.R:147
     2: quasi_capture(enquo(object), capture_messages, label = label)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withCallingHandlers(code, message = function(condition) {
     out$push(condition)
     invokeRestart("muffleMessage")
     })
     5: eval_bare(get_expr(quo), get_env(quo))
     6: print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map())
     7: geom_spatial(longlake_depthdf, crsto = 4326)
     8: geom_spatial.sf(longlake_depthdf, crsto = 4326)
     9: geom_spatial.default(methods::as(sf::st_zm(data), "Spatial"), mapping = mapping,
     show.legend = show.legend, inherit.aes = inherit.aes, position = position, crsfrom = crsfrom,
     crsto = crsto, attribute_table = attribute_table, geom = geom, stat = stat, ...)
     10: spatial_fortify(data, attribute_table)
     11: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     12: spatial_fortify.default(x, attrs, ...)
     13: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26) ─────
     Some .id values are present in attrs and missing in fortified
     1: spatial_fortify(longlake_depthdf) at testthat/test-geom_spatial.R:26
     2: spatial_fortify.sf(longlake_depthdf)
     3: spatial_fortify(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs, ...)
     4: spatial_fortify.SpatialPointsDataFrame(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs,
     ...)
     5: spatial_fortify.default(x, attrs, ...)
     6: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6) ──────
     object 'DEPTH.M' not found
     1: print(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") + layer_spatial(longlake_roadsdf,
     size = 0.8, col = "white") + layer_spatial(longlake_waterdf, fill = "lightblue",
     col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) + labs(caption = "Should show long lake, round lake, etc.")) at testthat/test-layer-spatial.R:6
     2: print.ggplot(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") +
     layer_spatial(longlake_roadsdf, size = 0.8, col = "white") + layer_spatial(longlake_waterdf,
     fill = "lightblue", col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) +
     labs(caption = "Should show long lake, round lake, etc."))
     3: ggplot_build(x)
     4: ggplot_build.ggplot(x)
     5: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     6: f(l = layers[[i]], d = data[[i]])
     7: l$compute_aesthetics(d, plot)
     8: f(..., self = self)
     9: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     10: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     11: FUN(X[[i]], ...)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 112 SKIPPED: 0 FAILED: 5
     1. Error: deprecated tests run without error (@test-deprecated.R#23)
     2. Error: old stat project works (@test-deprecated.R#109)
     3. Error: deprecated OSM tiles work (@test-deprecated.R#147)
     4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26)
     5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.0.1
Check: re-building of vignette outputs
Result: WARN
    Error in re-building vignettes:
     ...
    Quitting from lines 36-39 (ggspatial.Rmd)
    Error: processing vignette ‘ggspatial.Rmd’ failed with diagnostics:
    object ‘DEPTH.M’ not found
    Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.0.1
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘tidyr’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64

Version: 1.0.1
Check: examples
Result: ERROR
    Running examples in ‘ggspatial-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: layer_spatial
    > ### Title: Turn a spatial object into a ggplot2 layer
    > ### Aliases: layer_spatial annotation_spatial layer_spatial.default
    > ### annotation_spatial.default
    >
    > ### ** Examples
    >
    > load_longlake_data()
    >
    > ggplot() +
    +
    + # annotation_spatial() layers don't train the scales, so data stays central
    + annotation_spatial(longlake_roadsdf, size = 2, col = "black") +
    + annotation_spatial(longlake_roadsdf, size = 1.6, col = "white") +
    +
    + # raster layers train scales and get projected automatically
    + layer_spatial(longlake_depth_raster, aes(alpha = stat(band1)), fill = "darkblue") +
    + scale_alpha_continuous(na.value = 0) +
    +
    + # layer_spatial() layers train the scales
    + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) +
    +
    + # spatial-aware automagic scale bar
    + annotation_scale(location = "tl") +
    +
    + # spatial-aware automagic north arrow
    + annotation_north_arrow(location = "br", which_north = "true")
    Error in FUN(X[[i]], ...) : object 'DEPTH.M' not found
    Calls: <Anonymous> ... <Anonymous> -> f -> scales_add_defaults -> lapply -> FUN
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [33s/39s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(ggspatial)
     Loading required package: ggplot2
     >
     > test_check("ggspatial")
     ── 1. Error: deprecated tests run without error (@test-deprecated.R#23) ───────
     Some .id values are present in attrs and missing in fortified
     1: print(ggplot() + geom_spatial(longlake_depthdf)) at testthat/test-deprecated.R:23
     2: geom_spatial(longlake_depthdf)
     3: geom_spatial.default(longlake_depthdf)
     4: spatial_fortify(data, attribute_table)
     5: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     6: spatial_fortify.default(x, attrs, ...)
     7: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 2. Error: old stat project works (@test-deprecated.R#109) ──────────────────
     object 'DEPTH.M' not found
     1: expect_silent(print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))) at testthat/test-deprecated.R:109
     2: quasi_capture(enquo(object), evaluate_promise)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning,
     message = handle_message))
     5: force(code)
     6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
     7: withVisible(code)
     8: eval_bare(get_expr(quo), get_env(quo))
     9: print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     10: print.ggplot(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     11: ggplot_build(x)
     12: ggplot_build.ggplot(x)
     13: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     14: f(l = layers[[i]], d = data[[i]])
     15: l$compute_aesthetics(d, plot)
     16: f(..., self = self)
     17: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     18: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     19: FUN(X[[i]], ...)
    
     ── 3. Error: deprecated OSM tiles work (@test-deprecated.R#147) ───────────────
     Some .id values are present in attrs and missing in fortified
     1: expect_message(print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map()),
     "Zoom: 15") at testthat/test-deprecated.R:147
     2: quasi_capture(enquo(object), capture_messages, label = label)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withCallingHandlers(code, message = function(condition) {
     out$push(condition)
     invokeRestart("muffleMessage")
     })
     5: eval_bare(get_expr(quo), get_env(quo))
     6: print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map())
     7: geom_spatial(longlake_depthdf, crsto = 4326)
     8: geom_spatial.sf(longlake_depthdf, crsto = 4326)
     9: geom_spatial.default(methods::as(sf::st_zm(data), "Spatial"), mapping = mapping,
     show.legend = show.legend, inherit.aes = inherit.aes, position = position, crsfrom = crsfrom,
     crsto = crsto, attribute_table = attribute_table, geom = geom, stat = stat, ...)
     10: spatial_fortify(data, attribute_table)
     11: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     12: spatial_fortify.default(x, attrs, ...)
     13: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26) ─────
     Some .id values are present in attrs and missing in fortified
     1: spatial_fortify(longlake_depthdf) at testthat/test-geom_spatial.R:26
     2: spatial_fortify.sf(longlake_depthdf)
     3: spatial_fortify(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs, ...)
     4: spatial_fortify.SpatialPointsDataFrame(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs,
     ...)
     5: spatial_fortify.default(x, attrs, ...)
     6: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6) ──────
     object 'DEPTH.M' not found
     1: print(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") + layer_spatial(longlake_roadsdf,
     size = 0.8, col = "white") + layer_spatial(longlake_waterdf, fill = "lightblue",
     col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) + labs(caption = "Should show long lake, round lake, etc.")) at testthat/test-layer-spatial.R:6
     2: print.ggplot(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") +
     layer_spatial(longlake_roadsdf, size = 0.8, col = "white") + layer_spatial(longlake_waterdf,
     fill = "lightblue", col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) +
     labs(caption = "Should show long lake, round lake, etc."))
     3: ggplot_build(x)
     4: ggplot_build.ggplot(x)
     5: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     6: f(l = layers[[i]], d = data[[i]])
     7: l$compute_aesthetics(d, plot)
     8: f(..., self = self)
     9: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     10: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     11: FUN(X[[i]], ...)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 112 SKIPPED: 0 FAILED: 5
     1. Error: deprecated tests run without error (@test-deprecated.R#23)
     2. Error: old stat project works (@test-deprecated.R#109)
     3. Error: deprecated OSM tiles work (@test-deprecated.R#147)
     4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26)
     5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.0.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [34s/36s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(ggspatial)
     Loading required package: ggplot2
     >
     > test_check("ggspatial")
     ── 1. Error: deprecated tests run without error (@test-deprecated.R#23) ───────
     Some .id values are present in attrs and missing in fortified
     1: print(ggplot() + geom_spatial(longlake_depthdf)) at testthat/test-deprecated.R:23
     2: geom_spatial(longlake_depthdf)
     3: geom_spatial.default(longlake_depthdf)
     4: spatial_fortify(data, attribute_table)
     5: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     6: spatial_fortify.default(x, attrs, ...)
     7: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 2. Error: old stat project works (@test-deprecated.R#109) ──────────────────
     object 'DEPTH.M' not found
     1: expect_silent(print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))) at testthat/test-deprecated.R:109
     2: quasi_capture(enquo(object), evaluate_promise)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning,
     message = handle_message))
     5: force(code)
     6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
     7: withVisible(code)
     8: eval_bare(get_expr(quo), get_env(quo))
     9: print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     10: print.ggplot(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     11: ggplot_build(x)
     12: ggplot_build.ggplot(x)
     13: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     14: f(l = layers[[i]], d = data[[i]])
     15: l$compute_aesthetics(d, plot)
     16: f(..., self = self)
     17: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     18: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     19: FUN(X[[i]], ...)
    
     ── 3. Error: deprecated OSM tiles work (@test-deprecated.R#147) ───────────────
     Some .id values are present in attrs and missing in fortified
     1: expect_message(print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map()),
     "Zoom: 15") at testthat/test-deprecated.R:147
     2: quasi_capture(enquo(object), capture_messages, label = label)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withCallingHandlers(code, message = function(condition) {
     out$push(condition)
     invokeRestart("muffleMessage")
     })
     5: eval_bare(get_expr(quo), get_env(quo))
     6: print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map())
     7: geom_spatial(longlake_depthdf, crsto = 4326)
     8: geom_spatial.sf(longlake_depthdf, crsto = 4326)
     9: geom_spatial.default(methods::as(sf::st_zm(data), "Spatial"), mapping = mapping,
     show.legend = show.legend, inherit.aes = inherit.aes, position = position, crsfrom = crsfrom,
     crsto = crsto, attribute_table = attribute_table, geom = geom, stat = stat, ...)
     10: spatial_fortify(data, attribute_table)
     11: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     12: spatial_fortify.default(x, attrs, ...)
     13: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26) ─────
     Some .id values are present in attrs and missing in fortified
     1: spatial_fortify(longlake_depthdf) at testthat/test-geom_spatial.R:26
     2: spatial_fortify.sf(longlake_depthdf)
     3: spatial_fortify(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs, ...)
     4: spatial_fortify.SpatialPointsDataFrame(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs,
     ...)
     5: spatial_fortify.default(x, attrs, ...)
     6: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6) ──────
     object 'DEPTH.M' not found
     1: print(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") + layer_spatial(longlake_roadsdf,
     size = 0.8, col = "white") + layer_spatial(longlake_waterdf, fill = "lightblue",
     col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) + labs(caption = "Should show long lake, round lake, etc.")) at testthat/test-layer-spatial.R:6
     2: print.ggplot(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") +
     layer_spatial(longlake_roadsdf, size = 0.8, col = "white") + layer_spatial(longlake_waterdf,
     fill = "lightblue", col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) +
     labs(caption = "Should show long lake, round lake, etc."))
     3: ggplot_build(x)
     4: ggplot_build.ggplot(x)
     5: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     6: f(l = layers[[i]], d = data[[i]])
     7: l$compute_aesthetics(d, plot)
     8: f(..., self = self)
     9: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     10: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     11: FUN(X[[i]], ...)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 112 SKIPPED: 0 FAILED: 5
     1. Error: deprecated tests run without error (@test-deprecated.R#23)
     2. Error: old stat project works (@test-deprecated.R#109)
     3. Error: deprecated OSM tiles work (@test-deprecated.R#147)
     4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26)
     5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.0.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [27s/30s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(ggspatial)
     Loading required package: ggplot2
     >
     > test_check("ggspatial")
     ── 1. Error: deprecated tests run without error (@test-deprecated.R#23) ───────
     Some .id values are present in attrs and missing in fortified
     1: print(ggplot() + geom_spatial(longlake_depthdf)) at testthat/test-deprecated.R:23
     2: geom_spatial(longlake_depthdf)
     3: geom_spatial.default(longlake_depthdf)
     4: spatial_fortify(data, attribute_table)
     5: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     6: spatial_fortify.default(x, attrs, ...)
     7: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 2. Error: old stat project works (@test-deprecated.R#109) ──────────────────
     object 'DEPTH.M' not found
     1: expect_silent(print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))) at testthat/test-deprecated.R:109
     2: quasi_capture(enquo(object), evaluate_promise)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning,
     message = handle_message))
     5: force(code)
     6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
     7: withVisible(code)
     8: eval_bare(get_expr(quo), get_env(quo))
     9: print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     10: print.ggplot(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     11: ggplot_build(x)
     12: ggplot_build.ggplot(x)
     13: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     14: f(l = layers[[i]], d = data[[i]])
     15: l$compute_aesthetics(d, plot)
     16: f(..., self = self)
     17: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     18: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     19: FUN(X[[i]], ...)
    
     ── 3. Error: deprecated OSM tiles work (@test-deprecated.R#147) ───────────────
     Some .id values are present in attrs and missing in fortified
     1: expect_message(print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map()),
     "Zoom: 15") at testthat/test-deprecated.R:147
     2: quasi_capture(enquo(object), capture_messages, label = label)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withCallingHandlers(code, message = function(condition) {
     out$push(condition)
     invokeRestart("muffleMessage")
     })
     5: eval_bare(get_expr(quo), get_env(quo))
     6: print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map())
     7: geom_spatial(longlake_depthdf, crsto = 4326)
     8: geom_spatial.sf(longlake_depthdf, crsto = 4326)
     9: geom_spatial.default(methods::as(sf::st_zm(data), "Spatial"), mapping = mapping,
     show.legend = show.legend, inherit.aes = inherit.aes, position = position, crsfrom = crsfrom,
     crsto = crsto, attribute_table = attribute_table, geom = geom, stat = stat, ...)
     10: spatial_fortify(data, attribute_table)
     11: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     12: spatial_fortify.default(x, attrs, ...)
     13: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26) ─────
     Some .id values are present in attrs and missing in fortified
     1: spatial_fortify(longlake_depthdf) at testthat/test-geom_spatial.R:26
     2: spatial_fortify.sf(longlake_depthdf)
     3: spatial_fortify(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs, ...)
     4: spatial_fortify.SpatialPointsDataFrame(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs,
     ...)
     5: spatial_fortify.default(x, attrs, ...)
     6: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6) ──────
     object 'DEPTH.M' not found
     1: print(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") + layer_spatial(longlake_roadsdf,
     size = 0.8, col = "white") + layer_spatial(longlake_waterdf, fill = "lightblue",
     col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) + labs(caption = "Should show long lake, round lake, etc.")) at testthat/test-layer-spatial.R:6
     2: print.ggplot(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") +
     layer_spatial(longlake_roadsdf, size = 0.8, col = "white") + layer_spatial(longlake_waterdf,
     fill = "lightblue", col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) +
     labs(caption = "Should show long lake, round lake, etc."))
     3: ggplot_build(x)
     4: ggplot_build.ggplot(x)
     5: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     6: f(l = layers[[i]], d = data[[i]])
     7: l$compute_aesthetics(d, plot)
     8: f(..., self = self)
     9: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     10: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     11: FUN(X[[i]], ...)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 112 SKIPPED: 0 FAILED: 5
     1. Error: deprecated tests run without error (@test-deprecated.R#23)
     2. Error: old stat project works (@test-deprecated.R#109)
     3. Error: deprecated OSM tiles work (@test-deprecated.R#147)
     4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26)
     5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 1.0.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [28s/29s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(ggspatial)
     Loading required package: ggplot2
     >
     > test_check("ggspatial")
     ── 1. Error: deprecated tests run without error (@test-deprecated.R#23) ───────
     Some .id values are present in attrs and missing in fortified
     1: print(ggplot() + geom_spatial(longlake_depthdf)) at testthat/test-deprecated.R:23
     2: geom_spatial(longlake_depthdf)
     3: geom_spatial.default(longlake_depthdf)
     4: spatial_fortify(data, attribute_table)
     5: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     6: spatial_fortify.default(x, attrs, ...)
     7: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 2. Error: old stat project works (@test-deprecated.R#109) ──────────────────
     object 'DEPTH.M' not found
     1: expect_silent(print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))) at testthat/test-deprecated.R:109
     2: quasi_capture(enquo(object), evaluate_promise)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning,
     message = handle_message))
     5: force(code)
     6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
     7: withVisible(code)
     8: eval_bare(get_expr(quo), get_env(quo))
     9: print(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     10: print.ggplot(ggplot() + stat_project(aes(LON, LAT, col = DEPTH.M), data = longlake_depthdf,
     crsfrom = 4326, crsto = 26920) + labs(caption = "These coordinates should be in UTM not lat/lon"))
     11: ggplot_build(x)
     12: ggplot_build.ggplot(x)
     13: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     14: f(l = layers[[i]], d = data[[i]])
     15: l$compute_aesthetics(d, plot)
     16: f(..., self = self)
     17: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     18: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     19: FUN(X[[i]], ...)
    
     ── 3. Error: deprecated OSM tiles work (@test-deprecated.R#147) ───────────────
     Some .id values are present in attrs and missing in fortified
     1: expect_message(print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map()),
     "Zoom: 15") at testthat/test-deprecated.R:147
     2: quasi_capture(enquo(object), capture_messages, label = label)
     3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
     4: withCallingHandlers(code, message = function(condition) {
     out$push(condition)
     invokeRestart("muffleMessage")
     })
     5: eval_bare(get_expr(quo), get_env(quo))
     6: print(ggplot() + geom_osm(zoom = 15, type = "osm", cachedir = system.file("rosm.cache",
     package = "ggspatial")) + geom_spatial(longlake_depthdf, crsto = 4326) + coord_map())
     7: geom_spatial(longlake_depthdf, crsto = 4326)
     8: geom_spatial.sf(longlake_depthdf, crsto = 4326)
     9: geom_spatial.default(methods::as(sf::st_zm(data), "Spatial"), mapping = mapping,
     show.legend = show.legend, inherit.aes = inherit.aes, position = position, crsfrom = crsfrom,
     crsto = crsto, attribute_table = attribute_table, geom = geom, stat = stat, ...)
     10: spatial_fortify(data, attribute_table)
     11: spatial_fortify.SpatialPointsDataFrame(data, attribute_table)
     12: spatial_fortify.default(x, attrs, ...)
     13: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26) ─────
     Some .id values are present in attrs and missing in fortified
     1: spatial_fortify(longlake_depthdf) at testthat/test-geom_spatial.R:26
     2: spatial_fortify.sf(longlake_depthdf)
     3: spatial_fortify(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs, ...)
     4: spatial_fortify.SpatialPointsDataFrame(methods::as(sf::st_zm(x), "Spatial"), attrs = attrs,
     ...)
     5: spatial_fortify.default(x, attrs, ...)
     6: stop("Some .id values are present in attrs and missing in fortified")
    
     ── 5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6) ──────
     object 'DEPTH.M' not found
     1: print(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") + layer_spatial(longlake_roadsdf,
     size = 0.8, col = "white") + layer_spatial(longlake_waterdf, fill = "lightblue",
     col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) + labs(caption = "Should show long lake, round lake, etc.")) at testthat/test-layer-spatial.R:6
     2: print.ggplot(ggplot() + layer_spatial(longlake_roadsdf, size = 1, col = "black") +
     layer_spatial(longlake_roadsdf, size = 0.8, col = "white") + layer_spatial(longlake_waterdf,
     fill = "lightblue", col = NA) + layer_spatial(longlake_depthdf, aes(col = DEPTH.M)) +
     labs(caption = "Should show long lake, round lake, etc."))
     3: ggplot_build(x)
     4: ggplot_build.ggplot(x)
     5: by_layer(function(l, d) l$compute_aesthetics(d, plot))
     6: f(l = layers[[i]], d = data[[i]])
     7: l$compute_aesthetics(d, plot)
     8: f(..., self = self)
     9: scales_add_defaults(plot$scales, data, aesthetics, plot$plot_env)
     10: lapply(aesthetics[new_aesthetics], rlang::eval_tidy, data = data)
     11: FUN(X[[i]], ...)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     OK: 112 SKIPPED: 0 FAILED: 5
     1. Error: deprecated tests run without error (@test-deprecated.R#23)
     2. Error: old stat project works (@test-deprecated.R#109)
     3. Error: deprecated OSM tiles work (@test-deprecated.R#147)
     4. Error: geom_spatial_* geoms work properly (@test-geom_spatial.R#26)
     5. Error: layer_spatial() works as intended (@test-layer-spatial.R#6)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-linux-x86_64