ropensci / stplanr

Sustainable transport planning with R
https://docs.ropensci.org/stplanr
Other
416 stars 66 forks source link

`line_segment()` fails when n_segments has multiple values #560

Closed Robinlovelace closed 2 months ago

Robinlovelace commented 2 months ago

Minimal example of this:

> is.na(1:3) && TRUE
Error in is.na(1:3) && TRUE : 'length = 3' in coercion to 'logical(1)'
> 
> 
> 
> any(is.na(1:3)) && TRUE
[1] FALSE