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

Suboptimal error message for zero-length character vectors #212

Closed
hadley opened this issue Mar 1, 2018 · 0 comments
Closed

Suboptimal error message for zero-length character vectors #212

hadley opened this issue Mar 1, 2018 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@hadley
Copy link
Member

hadley commented Mar 1, 2018

xml2::read_xml(character())
#> Error in if (grepl("<|>", x)) {: argument is of length zero

Created on 2018-03-01 by the reprex package
(0.1.1.9000)
.

@jimhester jimhester added the bug an unexpected problem or unintended behavior label Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants