line2routeRetry: Convert straight SpatialLinesDataFrame from flow data into...

Description Usage Arguments Details Examples

View source: R/od-funs.R

Description

Convert straight SpatialLinesDataFrame from flow data into routes retrying on connection (or other) intermittent failures

Usage

1
line2routeRetry(lines, pattern = "^Error: ", n_retry = 3, ...)

Arguments

lines

A SpatialLinesDataFrame

pattern

A regex that the error messages must not match to be retried, default "^Error: " i.e. do not retry errors starting with "Error: "

n_retry

Number of times to retry

...

Arguments passed to the routing function, e.g. route_cyclestreet()

Details

See line2route() for the version that is not retried on errors.

Examples

1
2
3
4
5
## Not run: 
data(flowlines)
rf_list <- line2routeRetry(flowlines[1:2, ], pattern = "nonexistanceerror", silent = F)

## End(Not run)

stplanr documentation built on Oct. 20, 2018, 5:05 p.m.