Closed latot closed 2 months ago
Hi @latot! The feature you requested is available starting from version 0.6.4
library(sf)
#> Linking to GEOS 3.11.2, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
library(sfnetworks)
p1 = st_point(c(7, 51))
p2 = st_point(c(7, 52))
l1 = st_sfc(st_linestring(c(p1, p2)))
edges = st_as_sf(l1, crs = 4326)
nodes = st_as_sf(c(st_sfc(p1), st_sfc(p2)), crs = 4326)
edges$from = c(1)
edges$to = c(2)
sfn <- sfnetwork(nodes, edges, message = FALSE)
Created on 2024-07-12 with reprex v2.0.2
Therefore, I think we can close this issue for the time being.
:O Thx!
Hi all, I think would be great a
quiet
option for functions likesfnetwork
andas_sfnetwork
, they actually have this messages:Which can be helpful when we are using sfnetworks manually, but in a lib or tests do the things more complex, if we use a lot of networks to test, we end having a lot of that text all over the place.
There is an option to skip the validation, which is different to this issue, I think the best is be able to run the network validation without this messages, and if is not valid, then throw an error.
Thx!