Learn R Programming

r5rgui: Simple Shiny GUI for r5r

The goal of {r5rgui} is to allow the user to interactively explore routes calcualted with {r5r} (https://github.com/ipeaGIT/r5r/) package in a Shiny app, e.g. for troubleshooting routing problems.

Installation

You can install the development version of r5rgui from GitHub with:

# install.packages("pak")
pak::pak("e-kotov/r5rgui")

# setup Java as you would for r5r package
# install.packages('rJavaEnv')

# check version of Java currently installed (if any) 
rJavaEnv::java_check_version_rjava()

# install Java 21
rJavaEnv::java_quick_install(version = 21)

Example

This is a basic example which shows you how to solve a common problem:

library(r5rgui)
r5r_gui_demo()

What the demo runs internally is this simple example code:

library(r5r)
data_path <- system.file("extdata/poa", package = "r5r")
r5r_network <- build_network(data_path = data_path, verbose = FALSE)
r5r_gui(r5r_network, center = c(-51.22, -30.05), zoom = 11)

Therefore you can replace data_path with your own data path and explore your own routing network.

Copy Link

Version

Install

install.packages('r5rgui')

Monthly Downloads

135

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Egor Kotov

Last Published

November 25th, 2025

Functions in r5rgui (0.1.0)

r5r_gui

Run the r5rgui Shiny Application
r5r_gui_demo

Run a Demonstration of the r5rgui Application