ropensci / parzer

Parse geographic coordinates
https://docs.ropensci.org/parzer
Other
63 stars 6 forks source link

erroring #5

Open sckott opened 5 years ago

sckott commented 5 years ago

not sure how to error. some methods

popovs commented 1 year ago

not sure if this is the appropriate ticket to comment on, but it would be nice if parse_lat/parse_lon did not throw out a warning for detecting NA values in the vector. E.g.

> parzer::parse_lon(c(42.5, NA, 43.6, 56.3, -53, 0))

[1]  42.5   NaN  43.6  56.3 -53.0   0.0
Warning message:
In base::.Call(...) : no digits detected, got: NA
AlbanSagouis commented 1 year ago

Seems to be a good place to me. Thanks! We are in the process of migrating from Rcpp to cpp11 so this might be something directly affected and if not, I agree there is room for improvement so I'll keep it in mind.