CRAN Package Check Results for Package rmapshaper

Last updated on 2020-01-27 00:48:18 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4.2 7.29 157.23 164.52 OK
r-devel-linux-x86_64-debian-gcc 0.4.2 5.51 111.98 117.49 OK
r-devel-linux-x86_64-fedora-clang 0.4.2 120.04 OK
r-devel-linux-x86_64-fedora-gcc 0.4.2 125.52 OK
r-devel-windows-ix86+x86_64 0.4.2 23.00 203.00 226.00 OK
r-devel-windows-ix86+x86_64-gcc8 0.4.2 20.00 202.00 222.00 OK
r-patched-linux-x86_64 0.4.2 6.72 150.22 156.94 OK
r-patched-solaris-x86 0.4.2 142.80 ERROR
r-release-linux-x86_64 0.4.2 6.89 150.04 156.93 OK
r-release-windows-ix86+x86_64 0.4.2 11.00 142.00 153.00 OK
r-release-osx-x86_64 0.4.2 OK
r-oldrel-windows-ix86+x86_64 0.4.2 8.00 145.00 153.00 OK
r-oldrel-osx-x86_64 0.4.2 OK

Check Details

Version: 0.4.2
Check: examples
Result: ERROR
    Running examples in ‘rmapshaper-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: ms_clip
    > ### Title: Remove features or portions of features that fall outside a
    > ### clipping area.
    > ### Aliases: ms_clip
    >
    > ### ** Examples
    >
    > library(geojsonio, quietly = TRUE)
    
    Attaching package: ‘geojsonio’
    
    The following object is masked from ‘package:base’:
    
     pretty
    
    > library(sp)
    >
    > poly <- structure("{\"type\":\"FeatureCollection\",
    + \"features\":[{\"type\":\"Feature\",\"properties\":{},
    + \"geometry\":{\"type\":\"Polygon\",\"coordinates\":
    + [[[52.8658,-44.7219],[53.7702,-40.4873],[55.3204,-37.5579],
    + [56.2757,-37.917],[56.184,-40.6443],[61.0835,-40.7529],
    + [58.0202,-43.634],[61.6699,-45.0678],[62.737,-46.2841],
    + [55.7763,-46.2637],[54.9742,-49.1184],[52.799,-45.9386],
    + [52.0329,-49.5677],[50.1747,-52.1814],[49.0098,-52.3641],
    + [52.7068,-45.7639],[43.2278,-47.1908],[48.4755,-45.1388],
    + [50.327,-43.5207],[48.0804,-41.2784],[49.6307,-40.6159],
    + [52.8658,-44.7219]]]}}]}", class = c("json", "geo_json"))
    > poly <- geojson_sp(poly)
    > plot(poly)
    >
    > clip_poly <- structure('{
    + "type": "Feature",
    + "properties": {},
    + "geometry": {
    + "type": "Polygon",
    + "coordinates": [
    + [
    + [51, -40],
    + [55, -40],
    + [55, -45],
    + [51, -45],
    + [51, -40]
    + ]
    + ]
    + }
    + }', class = c("json", "geo_json"))
    > clip_poly <- geojson_sp(clip_poly)
    > plot(clip_poly)
    >
    > out <- ms_clip(poly, clip_poly)
    Error in context_eval(join(src), private$context, serialize) :
     Error in V8 context: ReferenceError: Uint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
    Calls: ms_clip ... <Anonymous> -> evaluate_js -> get_str_output -> context_eval
    Execution halted
Flavor: r-patched-solaris-x86

Version: 0.4.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [39s/51s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library("testthat")
     > library("rmapshaper")
     >
     > test_check("rmapshaper")
     ── 1. Error: ms_clip.geo_json works (@test-clip_erase.R#70) ───────────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. rmapshaper::ms_clip(poly, clip_poly)
     2. rmapshaper:::ms_clip.geo_json(poly, clip_poly)
     3. rmapshaper:::clip_erase_json(...)
     4. rmapshaper:::mapshaper_clip_erase(...)
     5. ms$eval(...)
     6. V8:::evaluate_js(src, serialize = serialize)
     8. V8:::context_eval(join(src), private$context, serialize)
    
     ── 2. Error: ms_clip.character works (@test-clip_erase.R#81) ──────────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. rmapshaper::ms_clip(unclass(poly), unclass(clip_poly))
     2. rmapshaper:::ms_clip.character(unclass(poly), unclass(clip_poly))
     3. rmapshaper:::clip_erase_json(...)
     4. rmapshaper:::mapshaper_clip_erase(...)
     5. ms$eval(...)
     6. V8:::evaluate_js(src, serialize = serialize)
     8. V8:::context_eval(join(src), private$context, serialize)
    
     ── 3. Error: ms_erase.geo_json works (@test-clip_erase.R#89) ──────────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. rmapshaper::ms_erase(poly, clip_poly)
     2. rmapshaper:::ms_erase.geo_json(poly, clip_poly)
     3. rmapshaper:::clip_erase_json(...)
     4. rmapshaper:::mapshaper_clip_erase(...)
     5. ms$eval(...)
     6. V8:::evaluate_js(src, serialize = serialize)
     8. V8:::context_eval(join(src), private$context, serialize)
    
     ── 4. Error: ms_erase.character works (@test-clip_erase.R#100) ────────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. rmapshaper::ms_erase(unclass(poly), unclass(clip_poly))
     2. rmapshaper:::ms_erase.character(unclass(poly), unclass(clip_poly))
     3. rmapshaper:::clip_erase_json(...)
     4. rmapshaper:::mapshaper_clip_erase(...)
     5. ms$eval(...)
     6. V8:::evaluate_js(src, serialize = serialize)
     8. V8:::context_eval(join(src), private$context, serialize)
    
     ── 5. Error: ms_clip.SpatialPolygons works (@test-clip_erase.R#109) ───────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. rmapshaper::ms_clip(poly_spdf, clip_poly_spdf)
     2. rmapshaper:::ms_clip.SpatialPolygons(poly_spdf, clip_poly_spdf)
     3. rmapshaper:::clip_erase_sp(...)
     4. rmapshaper:::mapshaper_clip_erase(...)
     5. ms$eval(...)
     6. V8:::evaluate_js(src, serialize = serialize)
     8. V8:::context_eval(join(src), private$context, serialize)
    
     ── 6. Error: ms_erase.SpatialPolygons works (@test-clip_erase.R#123) ──────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. rmapshaper::ms_erase(poly_spdf, clip_poly_spdf)
     2. rmapshaper:::ms_erase.SpatialPolygons(poly_spdf, clip_poly_spdf)
     3. rmapshaper:::clip_erase_sp(...)
     4. rmapshaper:::mapshaper_clip_erase(...)
     5. ms$eval(...)
     6. V8:::evaluate_js(src, serialize = serialize)
     8. V8:::context_eval(join(src), private$context, serialize)
    
     ── 7. Error: warning occurs when non-identical CRS (@test-clip_erase.R#138) ───
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. testthat::expect_warning(ms_clip(poly_spdf, diff_crs), "target and clip do not have identical CRS")
     7. rmapshaper:::ms_clip.SpatialPolygons(poly_spdf, diff_crs)
     8. rmapshaper:::clip_erase_sp(...)
     9. rmapshaper:::mapshaper_clip_erase(...)
     10. ms$eval(...)
     11. V8:::evaluate_js(src, serialize = serialize)
     13. V8:::context_eval(join(src), private$context, serialize)
    
     ── 8. Error: ms_clip works with lines (@test-clip_erase.R#147) ────────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolylines (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. testthat::expect_equivalent(...)
     7. rmapshaper:::ms_clip.geo_json(line, clip_poly)
     8. rmapshaper:::clip_erase_json(...)
     9. rmapshaper:::mapshaper_clip_erase(...)
     10. ms$eval(...)
     11. V8:::evaluate_js(src, serialize = serialize)
     13. V8:::context_eval(join(src), private$context, serialize)
    
     ── 9. Error: ms_erase works with lines (@test-clip_erase.R#162) ───────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolylines (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. testthat::expect_equivalent(...)
     7. rmapshaper:::ms_erase.geo_json(line, clip_poly)
     8. rmapshaper:::clip_erase_json(...)
     9. rmapshaper:::mapshaper_clip_erase(...)
     10. ms$eval(...)
     11. V8:::evaluate_js(src, serialize = serialize)
     13. V8:::context_eval(join(src), private$context, serialize)
    
     ── 10. Error: ms_clip works with points (@test-clip_erase.R#176) ──────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPoints (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. testthat::expect_equivalent(...)
     7. rmapshaper:::ms_clip.geo_json(points, clip_poly)
     8. rmapshaper:::clip_erase_json(...)
     9. rmapshaper:::mapshaper_clip_erase(...)
     10. ms$eval(...)
     11. V8:::evaluate_js(src, serialize = serialize)
     13. V8:::context_eval(join(src), private$context, serialize)
    
     ── 11. Error: ms_erase works with points (@test-clip_erase.R#190) ─────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPoints (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. testthat::expect_equivalent(...)
     7. rmapshaper:::ms_erase.geo_json(points, clip_poly)
     8. rmapshaper:::clip_erase_json(...)
     9. rmapshaper:::mapshaper_clip_erase(...)
     10. ms$eval(...)
     11. V8:::evaluate_js(src, serialize = serialize)
     13. V8:::context_eval(join(src), private$context, serialize)
    
     ── 12. Error: bbox works (@test-clip_erase.R#201) ─────────────────────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. rmapshaper::ms_erase(poly, bbox = c(51, -45, 55, -40))
     2. rmapshaper:::ms_erase.geo_json(poly, bbox = c(51, -45, 55, -40))
     3. rmapshaper:::clip_erase_json(...)
     4. rmapshaper:::mapshaper_clip_erase(...)
     5. rmapshaper::apply_mapshaper_commands(...)
     6. ms$call("mapshaper.applyCommands", command, data, V8::JS(callback()))
     8. V8:::evaluate_js(src, serialize = TRUE)
     10. V8:::context_eval(join(src), private$context, serialize)
    
     ── 13. Error: clip works with sf objects (@test-clip_erase.R#232) ─────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. testthat::expect_is(ms_clip(poly_sf, clip_sf), "sf")
     5. rmapshaper:::ms_clip.sf(poly_sf, clip_sf)
     6. rmapshaper:::clip_erase_sf(...)
     7. rmapshaper:::mapshaper_clip_erase(...)
     8. ms$eval(...)
     9. V8:::evaluate_js(src, serialize = serialize)
     11. V8:::context_eval(join(src), private$context, serialize)
    
     ── 14. Error: erase works with sf objects (@test-clip_erase.R#244) ────────────
     ReferenceUint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
     Backtrace:
     1. testthat::expect_is(ms_erase(poly_sf, clip_sf), "sf")
     5. rmapshaper:::ms_erase.sf(poly_sf, clip_sf)
     6. rmapshaper:::clip_erase_sf(...)
     7. rmapshaper:::mapshaper_clip_erase(...)
     8. ms$eval(...)
     9. V8:::evaluate_js(src, serialize = serialize)
     11. V8:::context_eval(join(src), private$context, serialize)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 222 | SKIPPED: 21 | WARNINGS: 4 | FAILED: 14 ]
     1. Error: ms_clip.geo_json works (@test-clip_erase.R#70)
     2. Error: ms_clip.character works (@test-clip_erase.R#81)
     3. Error: ms_erase.geo_json works (@test-clip_erase.R#89)
     4. Error: ms_erase.character works (@test-clip_erase.R#100)
     5. Error: ms_clip.SpatialPolygons works (@test-clip_erase.R#109)
     6. Error: ms_erase.SpatialPolygons works (@test-clip_erase.R#123)
     7. Error: warning occurs when non-identical CRS (@test-clip_erase.R#138)
     8. Error: ms_clip works with lines (@test-clip_erase.R#147)
     9. Error: ms_erase works with lines (@test-clip_erase.R#162)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-patched-solaris-x86

Version: 0.4.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘rmapshaper.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    Quitting from lines 96-111 (rmapshaper.Rmd)
    Error: processing vignette 'rmapshaper.Rmd' failed with diagnostics:
    Error in V8 context: ReferenceError: Uint8ClampedArray is not defined
     at unknown source
     at unknown source
     at Object.<anonymous> (unknown source)
     at o (unknown source)
     at unknown source
     at Object.getBoundsSearchFunction (unknown source)
     at new PathIndex (unknown source)
     at Object.clipPolygons (unknown source)
     at Object.clipLayerByLayer (unknown source)
     at unknown source
    --- failed re-building ‘rmapshaper.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘rmapshaper.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-patched-solaris-x86