Returns the path to previously downloaded and cached Osmosis. If it has not been downloaded yet, downloads it using download_osmosis().

osmosis_path(version = "0.48.3", force = FALSE, quiet = TRUE)

Arguments

version

A string. The version of Osmosis whose path should be returned. Defaults to "0.48.3", the current latest version. Please check openstreetmap/osmosis releases for the full set of available versions.

force

A logical. Passed to download_osmosis(), whether to overwrite previously downloaded and cached Osmosis. Defaults to FALSE.

quiet

A logical. Passed to download_osmosis(), whether to hide informative messages or not. Defaults to TRUE.

Value

A string, the path to Osmosis.

Examples

osmosis_path()
#> [1] "/home/runner/.cache/R/rosmosis/osmosis-0.48.3/bin/osmosis"