-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error due to type conflict in new version of tibble #49
Comments
Thanks for reporting this, I was able to replicate the issue. It looks like this error is coming from vctrs: https://vctrs.r-lib.org/reference/vec_cast.html I haven't gotten a chance to dig into it yet, but the solution may be to force the lat/long coordinates to be formatted as a double in the extract_results or geo functions. The Census geocoder is returning 'logical' format for the lat/long columns:
When using |
Yeah, that sounds right. It may be as simple as fixing the variable types in the |
@jaspercooper I've got a bug fix for you to try out: devtools::install_github("jessecambon/tidygeocoder", ref = 'cascade-na-fix') I changed the the lat/long NA values from |
Thanks, I actually found a workaround in the meantime just by writing my own "cascade" script with geocode_osm and geocode_census. Worked great, those functions are awesome and saved me a lot of time. Thanks for this great package! |
hi @jessecambon — thanks for this awesome package. It solves a huge problem in my workflow!
I've encountered a hiccup that appears to be due to tibble. The following code ran fine before I updated tibble, but broke afterward:
The error reads:
The error seems to be coming from here:
tidygeocoder/R/geo_methods.R
Line 70 in d971ebc
Tibble is not happy that the variable types are being overwritten.
If instead you change line 70 to something more explicit like
combi[,c("lat","long")] <- retry_results[,c("lat","long")]
everything runs just fine.Hope this helps, thanks again for the great package!
The text was updated successfully, but these errors were encountered: