Skip to content
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

Reading "adresni mista" layer using load_ruian_settlement() fails on some municipalities #9

Closed
petrbouchal opened this issue Oct 17, 2020 · 2 comments

Comments

@petrbouchal
Copy link
Contributor

For example

CzechData::load_RUIAN_settlement("547999", "adresni body")

## Error in nchar(x) : invalid multibyte string, element 3

This is due to an obscure bug in tidyverse/readr#1136 (or at least I think it's a bug). It can be worked around by explicitly setting the data type for columns in read_delim() at

col_types = readr::cols()) %>%

(Reading all columns as characters might be OK, or only those starting with "Název".)

Happy to do a PR if you are interested.

@JanCaha
Copy link
Owner

JanCaha commented Oct 18, 2020

Should be fixed by the latest commit.

@petrbouchal
Copy link
Contributor Author

Excellent, thank you for the speedy fix! Can confirm this now works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants