Skip to content

GISSB

Network Analysis on the Norwegian Road Network

v1.1 · Jan 10, 2023 · MIT + file LICENSE

Description

A collection of GIS (Geographic Information System) functions in R, created for use in Statistics Norway. The functions are primarily related to network analysis on the Norwegian road network.

Downloads

228

Last 30 days

20062nd

629

Last 90 days

2.4K

Last year

Trend: -1.3% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘GISSB-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: address_to_coords
> ### Title: Convert addresses to coordinates
> ### Aliases: address_to_coords
> 
> ### ** Examples
> 
> address_to_coords(zip_code = "0185", address = "Schweigaards gate 10")
Error: Please install xml2 package
Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘GISSB_vignette.Rmd’ using rmarkdown

Quitting from GISSB_vignette.Rmd:64-74 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! Please install xml2 package
---
Backtrace:
    ▆
 1. └─GISSB::address_to_coords(zip_code = "2211", address = "Otervegen 23")
 2.   └─base (local) address_coord_func_vec(zip_code, address)
 3.     ├─base::do.call(...)
 4.     └─base::mapply(...)
 5.       └─GISSB (local) `<fn>`(zip_code = dots[[1L]][[1L]], address = dots[[2L]][[1L]])
 6.         └─httr::content(resp)
 7.           └─httr:::parse_auto(raw, type, encoding, ...)
 8.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
 9.               └─httr:::need_package("xml2")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'GISSB_vignette.Rmd' failed with diagnostics:
Please install xml2 package
--- failed re-building ‘GISSB_vignette.Rmd’

SUMMARY: processing the following file failed:
  ‘GISSB_vignette.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [5s/140s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GISSB)
  > 
  > testthat::test_check("GISSB")
  Saving _problems/test-coords_to_google-6.R
  Saving _problems/test-coords_to_node-19.R
  [ FAIL 2 | WARN 5 | SKIP 0 | PASS 12 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-coords_to_google.R:4:3'): Testing coords_to_google ─────────────
  Error: Please install xml2 package
  Backtrace:
       ▆
    1. ├─... %>% coords_to_google() at test-coords_to_google.R:4:3
    2. ├─GISSB::coords_to_google(.)
    3. │ ├─... %>% sf::st_transform(coords, crs = crs_out)
    4. │ └─sf::st_transform(coords, crs = 4326)
    5. ├─sf::st_transform(., coords, crs = crs_out)
    6. ├─dplyr::select(., -coords_google_1, -coords_google_2)
    7. ├─dplyr::mutate(...)
    8. ├─dplyr::mutate(...)
    9. ├─dplyr::mutate(...)
   10. ├─dplyr::mutate(...)
   11. └─GISSB::address_to_coo
...[truncated]...
.           └─httr:::parse_auto(raw, type, encoding, ...)
   18.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   19.               └─httr:::need_package("xml2")
  ── Error ('test-coords_to_node.R:18:3'): Testing coords_to_node ────────────────
  Error: Please install xml2 package
  Backtrace:
      ▆
   1. └─GISSB::address_to_coords(zip_code = "0177", address = "Akersveien 26") at test-coords_to_node.R:18:3
   2.   └─base (local) address_coord_func_vec(zip_code, address)
   3.     ├─base::do.call(...)
   4.     └─base::mapply(...)
   5.       └─GISSB (local) `<fn>`(zip_code = dots[[1L]][[1L]], address = dots[[2L]][[1L]])
   6.         └─httr::content(resp)
   7.           └─httr:::parse_auto(raw, type, encoding, ...)
   8.             └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   9.               └─httr:::need_package("xml2")
  
  [ FAIL 2 | WARN 5 | SKIP 0 | PASS 12 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 6, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘GISSB-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: address_to_coords
> ### Title: Convert addresses to coordinates
> ### Aliases: address_to_coords
> 
> ### ** Examples
> 
> address_to_coords(zip_code = "0185", address = "Schweigaards gate 10")
Error: Please install xml2 package
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies cppRouting dplyr here httr igraph leaflet magrittr nabor purrr RCurl reshape2 rlang sf stringr tibble +2 more dependencies GISSB

Version History

new 1.1 Mar 10, 2026