Resolves the osrm-routed executable available on the current PATH
(or the override provided via options(osrm.routed.exec)). Runs
osrm-routed --version to verify availability, then prints the directory
containing the executable together with the backend version reported by
osrm-routed so you know what will be used in the current session.
Value
A list with components executable (full path to
osrm-routed), directory (its parent folder), osrm_version (character
vector of non-empty lines emitted by osrm-routed --version), and the raw
processx::run result in logs.
Examples
# \donttest{
if (identical(Sys.getenv("OSRM_EXAMPLES"), "true")) {
install_dir <- osrm_install(
version = "latest",
path_action = "session",
quiet = TRUE
)
# check which OSRM installation will be used
osrm_which()
osrm_uninstall(
dest_dir = install_dir,
clear_path = TRUE,
force = TRUE,
quiet = TRUE
)
}
# }