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

Add validate back to as.tbl_json #98

Open
colearendt opened this issue May 13, 2017 · 0 comments
Open

Add validate back to as.tbl_json #98

colearendt opened this issue May 13, 2017 · 0 comments

Comments

@colearendt
Copy link
Owner

In particular, this was referenced at sailthru/tidyjson#19. Should this be added back in?

The context there is as.tbl_json.character:

as.tbl_json.character <- function(x, ...) {

  # Check for valid
  is_valid <- vapply(x, validate, logical(1))

  if (any(!is_valid))
    stop(sprintf("%s records have invalid json data", sum(!is_valid)))

   # Parse the json
   json <- lapply(x, fromJSON, simplifyVector = FALSE)
...
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

1 participant