Running ‘testthat.R’ [24s/37s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidyjson)
  
  Attaching package: 'tidyjson'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("tidyjson")
  Rows: 30
  Columns: 52
  $ document.id                   <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …
  $ array.index                   <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, …
  $ sha                           <chr> "c7437518aaf4c5b1105e0f4b2dce1b1672970e…
  $ url                           <chr> "https://api.github.com/repos/hadley/dp…
  $ html_url                      <chr> "https://github.com/hadley/dplyr/commit…
  $ comments_url                  <chr> "https://api.github.com/repos/hadley/dp…
  $ commit.message                <chr> "rbind_all, rbind_list create tbl_df ob…
  $ commit.url                    <chr> "https://api.github.com/repos/hadley/dp…
  $ commit.comment_count          <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
  $ author.login                  <chr> "romainfrancois", "hadley", "hadley", "…
  $ author.id                     <dbl> 2625526, 4196, 4196, 4196, 4196, 4196, …
  $ author.avatar_url             <chr> "https://avatars.githubusercontent.com/…
  $ author.gravatar_id            <chr> "26e3000cfc1805e2d16ed778979933c6", "7b…
  $ author.url                    <chr> "https://api.github.com/users/romainfra…
  $ author.html_url               <chr> "https://github.com/romainfrancois", "h…
  $ author.followers_url          <chr> "https://api.github.com/users/romainfra…
  $ author.following_url          <chr> "https://api.github.com/users/romainfra…
  $ author.gists_url              <chr> "https://api.github.com/users/romainfra…
  $ author.starred_url            <chr> "https://api.github.com/users/romainfra…
  $ author.subscriptions_url      <chr> "https://api.github.com/users/romainfra…
  $ author.organizations_url      <chr> "https://api.github.com/users/romainfra…
  $ author.repos_url              <chr> "https://api.github.com/users/romainfra…
  $ author.events_url             <chr> "https://api.github.com/users/romainfra…
  $ author.received_events_url    <chr> "https://api.github.com/users/romainfra…
  $ author.type                   <chr> "User", "User", "User", "User", "User",…
  $ author.site_admin             <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALS…
  $ committer.login               <chr> "romainfrancois", "hadley", "hadley", "…
  $ committer.id                  <dbl> 2625526, 4196, 4196, 4196, 4196, 4196, …
  $ committer.avatar_url          <chr> "https://avatars.githubusercontent.com/…
  $ committer.gravatar_id         <chr> "26e3000cfc1805e2d16ed778979933c6", "7b…
  $ committer.url                 <chr> "https://api.github.com/users/romainfra…
  $ committer.html_url            <chr> "https://github.com/romainfrancois", "h…
  $ committer.followers_url       <chr> "https://api.github.com/users/romainfra…
  $ committer.following_url       <chr> "https://api.github.com/users/romainfra…
  $ committer.gists_url           <chr> "https://api.github.com/users/romainfra…
  $ committer.starred_url         <chr> "https://api.github.com/users/romainfra…
  $ committer.subscriptions_url   <chr> "https://api.github.com/users/romainfra…
  $ committer.organizations_url   <chr> "https://api.github.com/users/romainfra…
  $ committer.repos_url           <chr> "https://api.github.com/users/romainfra…
  $ committer.events_url          <chr> "https://api.github.com/users/romainfra…
  $ committer.received_events_url <chr> "https://api.github.com/users/romainfra…
  $ committer.type                <chr> "User", "User", "User", "User", "User",…
  $ committer.site_admin          <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALS…
  $ commit.author.name            <chr> "Romain Francois", "hadley", "hadley", …
  $ commit.author.email           <chr> "romain@r-enthusiasts.com", "h.wickham@…
  $ commit.author.date            <chr> "2014-09-13T10:10:36Z", "2014-09-12T20:…
  $ commit.committer.name         <chr> "Romain Francois", "hadley", "hadley", …
  $ commit.committer.email        <chr> "romain@r-enthusiasts.com", "h.wickham@…
  $ commit.committer.date         <chr> "2014-09-13T10:10:36Z", "2014-09-12T20:…
  $ commit.tree.sha               <chr> "7951a23c578ef1602d32b41f994bf039f131ce…
  $ commit.tree.url               <chr> "https://api.github.com/repos/hadley/dp…
  $ ..JSON                        <list> [["c7437518aaf4c5b1105e0f4b2dce1b16729…
  Rows: 32
  Columns: 7
  $ document.id <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …
  $ commit      <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17…
  $ parent      <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …
  $ sha         <chr> "ea1563fcf2ebe08eb3b83c13040e04fa61f077e9", "4abf4e1b9a1e…
  $ url         <chr> "https://api.github.com/repos/hadley/dplyr/commits/ea1563…
  $ html_url    <chr> "https://github.com/hadley/dplyr/commit/ea1563fcf2ebe08eb…
  $ ..JSON      <list> [["ea1563fcf2ebe08eb3b83c13040e04fa61f077e9", "https://a…
   chr [1:1000] "{ \"_id\" : { \"$oid\" : \"52cdef7e4bab8bd67529bd0c\" }, \"name\" : \"OutSmart Power Systems\", \"permalink\" :"| __truncated__ ...
  Rows: 5
  Columns: 31
  $ document.id         <int> 1, 2, 3, 4, 5
  $ name                <chr> "OutSmart Power Systems", "Joomla", "Firewall Scr…
  $ permalink           <chr> "outsmart-power-systems", "joomla", "firewall-scr…
  $ crunchbase_url      <chr> "http://www.crunchbase.com/company/outsmart-power…
  $ homepage_url        <chr> "http://www.outsmartinc.com", "http://www.joomla.…
  $ blog_url            <chr> "", "http://www.joomla.org/announcements.html", "…
  $ blog_feed_url       <chr> "", "http://www.joomla.org/announcements.feed?typ…
  $ twitter_username    <chr> "", "joomla", NA, "displax", ""
  $ category_code       <chr> "hardware", "software", "software", "software", "…
  $ number_of_employees <dbl> NA, NA, 5, 45, NA
  $ founded_year        <dbl> 2008, 2005, NA, 2004, 2006
  $ founded_month       <dbl> NA, NA, NA, 1, NA
  $ founded_day         <lgl> NA, NA, NA, NA, NA
  $ deadpooled_year     <lgl> NA, NA, NA, NA, NA
  $ deadpooled_month    <lgl> NA, NA, NA, NA, NA
  $ deadpooled_day      <lgl> NA, NA, NA, NA, NA
  $ deadpooled_url      <lgl> NA, NA, NA, NA, NA
  $ tag_list            <chr> "", "content-management, content-management-syste…
  $ alias_list          <chr> "", "", NA, NA, ""
  $ email_address       <chr> "osinfo@outsmartinc.com", "", "", "displax@displa…
  $ phone_number        <chr> "508.650.0055", "", "", "00351 253265506", "734.2…
  $ description         <chr> "Building, equipment, network management", "Conte…
  $ created_at          <chr> "Sun May 31 07:40:46 UTC 2009", "Wed Jun 24 17:39…
  $ updated_at          <chr> "Tue Dec 10 11:06:26 UTC 2013", "Sun Mar 31 08:31…
  $ overview            <chr> "<p>OutSmart is developing a network, consisting …
  $ total_money_raised  <chr> "$9.91M", "$0", "$0", "$0", "$41M"
  $ acquisition         <lgl> NA, NA, NA, NA, NA
  $ ipo                 <lgl> NA, NA, NA, NA, NA
  $ `_id.$oid`          <chr> "52cdef7e4bab8bd67529bd0c", "52cdef7f4bab8bd67529…
  $ image.attribution   <lgl> NA, NA, NA, NA, NA
  $ ..JSON              <list> [[["52cdef7e4bab8bd67529bd0c"], "OutSmart Power …
  Rows: 527
  Columns: 8
  $ name              <chr> "OutSmart Power Systems", "Firewall Script", "Firew…
  $ array.index       <int> 1, 1, 2, 3, 1, 2, 1, 2, 3, 4, 5, 1, 1, 2, 3, 1, 1, …
  $ is_past           <lgl> FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FAL…
  $ title             <chr> "Board Observer", "", "", "Founder", "CEO", "CBO", …
  $ person.first_name <chr> "Jeffrey", "Ron", "Brandon", "Daniel", "Miguel", "M…
  $ person.last_name  <chr> "Weiss", "Myers", "Farber", "Blake Saltman", "Olive…
  $ person.permalink  <chr> "jeffrey-weiss", "ron-myers", "brandon-farber", "da…
  $ ..JSON            <list> [[FALSE, "Board Observer", ["Jeffrey", "Weiss", "j…
  Rows: 199
  Columns: 13
  $ document.id         <int> 8, 23, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36…
  $ array.index         <int> 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, …
  $ price_amount        <dbl> NA, NA, NA, NA, NA, NA, NA, NA, 10300000, 2400000…
  $ price_currency_code <chr> "USD", "USD", "USD", "USD", "USD", "USD", "USD", …
  $ term_code           <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N…
  $ source_url          <chr> "http://techcrunch.com/2011/01/18/thewrap-itsonth…
  $ source_description  <chr> "", "press release", "Groupon Buys Mob.ly, Opens …
  $ acquired_year       <dbl> 2011, 2007, 2010, 2010, 2010, 2010, 2011, 2011, 2…
  $ acquired_month      <dbl> NA, 5, 5, 5, 6, 12, 4, 4, 7, 8, 1, 9, 12, 1, 2, 2…
  $ acquired_day        <dbl> NA, 9, 5, NA, 24, 1, 6, 18, 17, 4, 10, NA, 28, 20…
  $ company.name        <chr> "ItsOnTheGrid.com", "Mowser", "Mob.ly", "Citydeal…
  $ company.permalink   <chr> "itsonthegrid-com", "mowser", "mob-ly", "citydeal…
  $ ..JSON              <list> [[NULL, "USD", NULL, "http://techcrunch.com/2011…
  Rows: 30
  Columns: 7
  $ document.id  <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
  $ array.index  <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1…
  $ sha          <chr> "c7437518aaf4c5b1105e0f4b2dce1b1672970efb", "ea1563fcf2e…
  $ url          <chr> "https://api.github.com/repos/hadley/dplyr/commits/c7437…
  $ html_url     <chr> "https://github.com/hadley/dplyr/commit/c7437518aaf4c5b1…
  $ comments_url <chr> "https://api.github.com/repos/hadley/dplyr/commits/c7437…
  $ ..JSON       <list> [["c7437518aaf4c5b1105e0f4b2dce1b1672970efb", [["Romain…
  Rows: 30
  Columns: 87
  $ document.id                           <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1…
  $ array.index                           <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, …
  $ url                                   <chr> "https://api.github.com/repos/h…
  $ labels_url                            <chr> "https://api.github.com/repos/h…
  $ comments_url                          <chr> "https://api.github.com/repos/h…
  $ events_url                            <chr> "https://api.github.com/repos/h…
  $ html_url                              <chr> "https://github.com/hadley/dply…
  $ id                                    <dbl> 42674946, 42671749, 42648986, 4…
  $ number                                <dbl> 597, 596, 595, 594, 592, 589, 5…
  $ title                                 <chr> "do() drops columns when functi…
  $ state                                 <chr> "open", "open", "open", "open",…
  $ locked                                <lgl> FALSE, FALSE, FALSE, FALSE, FAL…
  $ assignee                              <lgl> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ milestone                             <lgl> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ comments                              <dbl> 0, 0, 0, 0, 0, 0, 10, 5, 2, 13,…
  $ created_at                            <chr> "2014-09-12T22:01:36Z", "2014-0…
  $ updated_at                            <chr> "2014-09-12T22:01:36Z", "2014-0…
  $ closed_at                             <lgl> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ body                                  <chr> "For example, the result should…
  $ user.login                            <chr> "wch", "wch", "ateucher", "hadl…
  $ user.id                               <dbl> 86978, 86978, 2816635, 4196, 30…
  $ user.avatar_url                       <chr> "https://avatars.githubusercont…
  $ user.gravatar_id                      <chr> "3984cd736dbbb0a76fcdb7c5aa087f…
  $ user.url                              <chr> "https://api.github.com/users/w…
  $ user.html_url                         <chr> "https://github.com/wch", "http…
  $ user.followers_url                    <chr> "https://api.github.com/users/w…
  $ user.following_url                    <chr> "https://api.github.com/users/w…
  $ user.gists_url                        <chr> "https://api.github.com/users/w…
  $ user.starred_url                      <chr> "https://api.github.com/users/w…
  $ user.subscriptions_url                <chr> "https://api.github.com/users/w…
  $ user.organizations_url                <chr> "https://api.github.com/users/w…
  $ user.repos_url                        <chr> "https://api.github.com/users/w…
  $ user.events_url                       <chr> "https://api.github.com/users/w…
  $ user.received_events_url              <chr> "https://api.github.com/users/w…
  $ user.type                             <chr> "User", "User", "User", "User",…
  $ user.site_admin                       <lgl> FALSE, FALSE, FALSE, FALSE, FAL…
  $ assignee.login                        <chr> NA, NA, NA, "hadley", NA, "hadl…
  $ assignee.id                           <dbl> NA, NA, NA, 4196, NA, 4196, 419…
  $ assignee.avatar_url                   <chr> NA, NA, NA, "https://avatars.gi…
  $ assignee.gravatar_id                  <chr> NA, NA, NA, "7ba164f40a50bc23db…
  $ assignee.url                          <chr> NA, NA, NA, "https://api.github…
  $ assignee.html_url                     <chr> NA, NA, NA, "https://github.com…
  $ assignee.followers_url                <chr> NA, NA, NA, "https://api.github…
  $ assignee.following_url                <chr> NA, NA, NA, "https://api.github…
  $ assignee.gists_url                    <chr> NA, NA, NA, "https://api.github…
  $ assignee.starred_url                  <chr> NA, NA, NA, "https://api.github…
  $ assignee.subscriptions_url            <chr> NA, NA, NA, "https://api.github…
  $ assignee.organizations_url            <chr> NA, NA, NA, "https://api.github…
  $ assignee.repos_url                    <chr> NA, NA, NA, "https://api.github…
  $ assignee.events_url                   <chr> NA, NA, NA, "https://api.github…
  $ assignee.received_events_url          <chr> NA, NA, NA, "https://api.github…
  $ assignee.type                         <chr> NA, NA, NA, "User", NA, "User",…
  $ assignee.site_admin                   <lgl> NA, NA, NA, FALSE, NA, FALSE, F…
  $ milestone.url                         <chr> NA, NA, NA, "https://api.github…
  $ milestone.labels_url                  <chr> NA, NA, NA, "https://api.github…
  $ milestone.id                          <dbl> NA, NA, NA, 739722, NA, 540062,…
  $ milestone.number                      <dbl> NA, NA, NA, 7, NA, 4, 4, 4, 7, …
  $ milestone.title                       <chr> NA, NA, NA, "0.3.1", NA, "0.3",…
  $ milestone.description                 <chr> NA, NA, NA, "", NA, "", "", "",…
  $ milestone.open_issues                 <dbl> NA, NA, NA, 31, NA, 20, 20, 20,…
  $ milestone.closed_issues               <dbl> NA, NA, NA, 1, NA, 58, 58, 58, …
  $ milestone.state                       <chr> NA, NA, NA, "open", NA, "open",…
  $ milestone.created_at                  <chr> NA, NA, NA, "2014-08-01T13:42:4…
  $ milestone.updated_at                  <chr> NA, NA, NA, "2014-09-12T16:43:4…
  $ milestone.due_on                      <lgl> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ pull_request.url                      <chr> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ pull_request.html_url                 <chr> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ pull_request.diff_url                 <chr> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ pull_request.patch_url                <chr> NA, NA, NA, NA, NA, NA, NA, NA,…
  $ milestone.creator.login               <chr> NA, NA, NA, "hadley", NA, "hadl…
  $ milestone.creator.id                  <dbl> NA, NA, NA, 4196, NA, 4196, 419…
  $ milestone.creator.avatar_url          <chr> NA, NA, NA, "https://avatars.gi…
  $ milestone.creator.gravatar_id         <chr> NA, NA, NA, "7ba164f40a50bc23db…
  $ milestone.creator.url                 <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.html_url            <chr> NA, NA, NA, "https://github.com…
  $ milestone.creator.followers_url       <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.following_url       <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.gists_url           <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.starred_url         <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.subscriptions_url   <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.organizations_url   <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.repos_url           <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.events_url          <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.received_events_url <chr> NA, NA, NA, "https://api.github…
  $ milestone.creator.type                <chr> NA, NA, NA, "User", NA, "User",…
  $ milestone.creator.site_admin          <lgl> NA, NA, NA, FALSE, NA, FALSE, F…
  $ ..JSON                                <list> [["https://api.github.com/repo…
  Rows: 19
  Columns: 8
  $ document.id <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
  $ array.index <int> 4, 6, 7, 8, 9, 10, 11, 13, 14, 16, 17, 19, 23, 24, 25, 27…
  $ id          <dbl> 42647785, 42337967, 42231715, 42195670, 42186836, 4206675…
  $ label.index <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
  $ url         <chr> "https://api.github.com/repos/hadley/dplyr/labels/bug", "…
  $ name        <chr> "bug", "enhancement", "enhancement", "bug", "bug", "bug",…
  $ color       <chr> "fc2929", "84b6eb", "84b6eb", "fc2929", "fc2929", "fc2929…
  $ ..JSON      <list> [["https://api.github.com/repos/hadley/dplyr/labels/bug"…
  "string"
  {"name": "string"}
  [{"a": "number"}]
  [{"a": 1}]
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● Not handled yet (1)
  ● Vector input not yet supported in path (1)
  ● does not presently work (1)
  ● no longer an error (1)
  ● tests failing due to upstream print.tbl_df (4)
  ● this function had undefined and unexpected behavior (1)
  ● wait: testthat (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (???): /home/hornik/tmp/scratch/RtmptIKbFT/R.INSTALL6c43a1c2582/tidyjson/man/json_structure.Rd ──
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─"\"string\"" %>% json_structure
    2. ├─tidyjson::json_structure(.)
    3. │ └─tidyjson:::json_structure_init(.x)
    4. │   └─`%>%`(...)
    5. ├─tidyjson::json_lengths(.)
    6. │ └─tidyjson::is.tbl_json(.x)
    7. ├─tidyjson::json_types(.)
    8. │ └─tidyjson::is.tbl_json(.x)
    9. ├─dplyr::mutate(...)
   10. ├─tidyjson:::mutate.tbl_json(...)
   11. ├─base::NextMethod(generic, .data)
   12. ├─dplyr:::mutate.data.frame(...)
   13. │ └─dplyr:::mutate_cols(.data, ...)
   14. │   ├─base::withCallingHandlers(...)
   15. │   └─mask$eval_all_mutate(dots[[i]])
   16. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   17. │ ├─rlang::exec(abort, class = class, !!!.envir)
   18. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   19. │   └─rlang:::signal_abort(cnd)
   20. │     └─base::signalCondition(cnd)
   21. └─(function (e) ...
   22.   ├─vctrs::vec_size(rows[[i]])
   23.   ├─rows[[i]]
   24.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:5:3): simple string works ──────────────────────
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-json_structure.R:5:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─"\"a\"" %>% json_structure
    5. ├─tidyjson::json_structure(.)
    6. │ └─tidyjson:::json_structure_init(.x)
    7. │   └─`%>%`(...)
    8. ├─tidyjson::json_lengths(.)
    9. │ └─tidyjson::is.tbl_json(.x)
   10. ├─tidyjson::json_types(.)
   11. │ └─tidyjson::is.tbl_json(.x)
   12. ├─dplyr::mutate(...)
   13. ├─tidyjson:::mutate.tbl_json(...)
   14. ├─base::NextMethod(generic, .data)
   15. ├─dplyr:::mutate.data.frame(...)
   16. │ └─dplyr:::mutate_cols(.data, ...)
   17. │   ├─base::withCallingHandlers(...)
   18. │   └─mask$eval_all_mutate(dots[[i]])
   19. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   20. │ ├─rlang::exec(abort, class = class, !!!.envir)
   21. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   22. │   └─rlang:::signal_abort(cnd)
   23. │     └─base::signalCondition(cnd)
   24. └─(function (e) ...
   25.   ├─vctrs::vec_size(rows[[i]])
   26.   ├─rows[[i]]
   27.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:26:3): simple object works ─────────────────────
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─"{\"name\": \"value\"}" %>% json_structure test-json_structure.R:26:2
    2. ├─tidyjson::json_structure(.)
    3. │ └─tidyjson:::json_structure_init(.x)
    4. │   └─`%>%`(...)
    5. ├─tidyjson::json_lengths(.)
    6. │ └─tidyjson::is.tbl_json(.x)
    7. ├─tidyjson::json_types(.)
    8. │ └─tidyjson::is.tbl_json(.x)
    9. ├─dplyr::mutate(...)
   10. ├─tidyjson:::mutate.tbl_json(...)
   11. ├─base::NextMethod(generic, .data)
   12. ├─dplyr:::mutate.data.frame(...)
   13. │ └─dplyr:::mutate_cols(.data, ...)
   14. │   ├─base::withCallingHandlers(...)
   15. │   └─mask$eval_all_mutate(dots[[i]])
   16. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   17. │ ├─rlang::exec(abort, class = class, !!!.envir)
   18. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   19. │   └─rlang:::signal_abort(cnd)
   20. │     └─base::signalCondition(cnd)
   21. └─(function (e) ...
   22.   ├─vctrs::vec_size(rows[[i]])
   23.   ├─rows[[i]]
   24.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:53:3): simple array works ──────────────────────
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-json_structure.R:53:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─"[1, 2]" %>% json_structure
    5. ├─tidyjson::json_structure(.)
    6. │ └─tidyjson:::json_structure_init(.x)
    7. │   └─`%>%`(...)
    8. ├─tidyjson::json_lengths(.)
    9. │ └─tidyjson::is.tbl_json(.x)
   10. ├─tidyjson::json_types(.)
   11. │ └─tidyjson::is.tbl_json(.x)
   12. ├─dplyr::mutate(...)
   13. ├─tidyjson:::mutate.tbl_json(...)
   14. ├─base::NextMethod(generic, .data)
   15. ├─dplyr:::mutate.data.frame(...)
   16. │ └─dplyr:::mutate_cols(.data, ...)
   17. │   ├─base::withCallingHandlers(...)
   18. │   └─mask$eval_all_mutate(dots[[i]])
   19. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   20. │ ├─rlang::exec(abort, class = class, !!!.envir)
   21. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   22. │   └─rlang:::signal_abort(cnd)
   23. │     └─base::signalCondition(cnd)
   24. └─(function (e) ...
   25.   ├─vctrs::vec_size(rows[[i]])
   26.   ├─rows[[i]]
   27.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:75:3): nested object works ─────────────────────
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-json_structure.R:75:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─"{\"k1\": {\"k2\": \"value\"}}" %>% json_structure
    5. ├─tidyjson::json_structure(.)
    6. │ └─tidyjson:::json_structure_init(.x)
    7. │   └─`%>%`(...)
    8. ├─tidyjson::json_lengths(.)
    9. │ └─tidyjson::is.tbl_json(.x)
   10. ├─tidyjson::json_types(.)
   11. │ └─tidyjson::is.tbl_json(.x)
   12. ├─dplyr::mutate(...)
   13. ├─tidyjson:::mutate.tbl_json(...)
   14. ├─base::NextMethod(generic, .data)
   15. ├─dplyr:::mutate.data.frame(...)
   16. │ └─dplyr:::mutate_cols(.data, ...)
   17. │   ├─base::withCallingHandlers(...)
   18. │   └─mask$eval_all_mutate(dots[[i]])
   19. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   20. │ ├─rlang::exec(abort, class = class, !!!.envir)
   21. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   22. │   └─rlang:::signal_abort(cnd)
   23. │     └─base::signalCondition(cnd)
   24. └─(function (e) ...
   25.   ├─vctrs::vec_size(rows[[i]])
   26.   ├─rows[[i]]
   27.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:99:3): works with empty values appropriately ───
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-json_structure.R:99:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─"null" %>% json_structure
    5. ├─tidyjson::json_structure(.)
    6. │ └─tidyjson:::json_structure_init(.x)
    7. │   └─`%>%`(...)
    8. ├─tidyjson::json_lengths(.)
    9. │ └─tidyjson::is.tbl_json(.x)
   10. ├─tidyjson::json_types(.)
   11. │ └─tidyjson::is.tbl_json(.x)
   12. ├─dplyr::mutate(...)
   13. ├─tidyjson:::mutate.tbl_json(...)
   14. ├─base::NextMethod(generic, .data)
   15. ├─dplyr:::mutate.data.frame(...)
   16. │ └─dplyr:::mutate_cols(.data, ...)
   17. │   ├─base::withCallingHandlers(...)
   18. │   └─mask$eval_all_mutate(dots[[i]])
   19. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   20. │ ├─rlang::exec(abort, class = class, !!!.envir)
   21. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   22. │   └─rlang:::signal_abort(cnd)
   23. │     └─base::signalCondition(cnd)
   24. └─(function (e) ...
   25.   ├─vctrs::vec_size(rows[[i]])
   26.   ├─rows[[i]]
   27.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:121:3): works with tbl_json already ────────────
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-json_structure.R:121:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─c("\"a\"", "\"b\"") %>% as.tbl_json %>% json_structure
    5. ├─tidyjson::json_structure(.)
    6. │ └─tidyjson:::json_structure_init(.x)
    7. │   └─`%>%`(...)
    8. ├─tidyjson::json_lengths(.)
    9. │ └─tidyjson::is.tbl_json(.x)
   10. ├─tidyjson::json_types(.)
   11. │ └─tidyjson::is.tbl_json(.x)
   12. ├─dplyr::mutate(...)
   13. ├─tidyjson:::mutate.tbl_json(...)
   14. ├─base::NextMethod(generic, .data)
   15. ├─dplyr:::mutate.data.frame(...)
   16. │ └─dplyr:::mutate_cols(.data, ...)
   17. │   ├─base::withCallingHandlers(...)
   18. │   └─mask$eval_all_mutate(dots[[i]])
   19. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   20. │ ├─rlang::exec(abort, class = class, !!!.envir)
   21. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   22. │   └─rlang:::signal_abort(cnd)
   23. │     └─base::signalCondition(cnd)
   24. └─(function (e) ...
   25.   ├─vctrs::vec_size(rows[[i]])
   26.   ├─rows[[i]]
   27.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:143:3): seq works for a deeply nested sequence ──
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-json_structure.R:143:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─`%>%`(...)
    5. ├─tidyjson::json_structure(.)
    6. │ └─tidyjson:::json_structure_init(.x)
    7. │   └─`%>%`(...)
    8. ├─tidyjson::json_lengths(.)
    9. │ └─tidyjson::is.tbl_json(.x)
   10. ├─tidyjson::json_types(.)
   11. │ └─tidyjson::is.tbl_json(.x)
   12. ├─dplyr::mutate(...)
   13. ├─tidyjson:::mutate.tbl_json(...)
   14. ├─base::NextMethod(generic, .data)
   15. ├─dplyr:::mutate.data.frame(...)
   16. │ └─dplyr:::mutate_cols(.data, ...)
   17. │   ├─base::withCallingHandlers(...)
   18. │   └─mask$eval_all_mutate(dots[[i]])
   19. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   20. │ ├─rlang::exec(abort, class = class, !!!.envir)
   21. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   22. │   └─rlang:::signal_abort(cnd)
   23. │     └─base::signalCondition(cnd)
   24. └─(function (e) ...
   25.   ├─vctrs::vec_size(rows[[i]])
   26.   ├─rows[[i]]
   27.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:155:3): works with empty JSON ──────────────────
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─testthat::expect_identical(...) test-json_structure.R:155:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─"[]" %>% json_structure %>% nrow
    5. ├─base::nrow(.)
    6. ├─tidyjson::json_structure(.)
    7. │ └─tidyjson:::json_structure_init(.x)
    8. │   └─`%>%`(...)
    9. ├─tidyjson::json_lengths(.)
   10. │ └─tidyjson::is.tbl_json(.x)
   11. ├─tidyjson::json_types(.)
   12. │ └─tidyjson::is.tbl_json(.x)
   13. ├─dplyr::mutate(...)
   14. ├─tidyjson:::mutate.tbl_json(...)
   15. ├─base::NextMethod(generic, .data)
   16. ├─dplyr:::mutate.data.frame(...)
   17. │ └─dplyr:::mutate_cols(.data, ...)
   18. │   ├─base::withCallingHandlers(...)
   19. │   └─mask$eval_all_mutate(dots[[i]])
   20. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   21. │ ├─rlang::exec(abort, class = class, !!!.envir)
   22. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   23. │   └─rlang:::signal_abort(cnd)
   24. │     └─base::signalCondition(cnd)
   25. └─(function (e) ...
   26.   ├─vctrs::vec_size(rows[[i]])
   27.   ├─rows[[i]]
   28.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:164:3): imputes document.id when not present ───
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─`%>%`(...) test-json_structure.R:164:2
    2. ├─tidyjson::json_structure(.)
    3. │ └─tidyjson:::json_structure_init(.x)
    4. │   └─`%>%`(...)
    5. ├─tidyjson::json_lengths(.)
    6. │ └─tidyjson::is.tbl_json(.x)
    7. ├─tidyjson::json_types(.)
    8. │ └─tidyjson::is.tbl_json(.x)
    9. ├─dplyr::mutate(...)
   10. ├─tidyjson:::mutate.tbl_json(...)
   11. ├─base::NextMethod(generic, .data)
   12. ├─dplyr:::mutate.data.frame(...)
   13. │ └─dplyr:::mutate_cols(.data, ...)
   14. │   ├─base::withCallingHandlers(...)
   15. │   └─mask$eval_all_mutate(dots[[i]])
   16. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   17. │ ├─rlang::exec(abort, class = class, !!!.envir)
   18. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   19. │   └─rlang:::signal_abort(cnd)
   20. │     └─base::signalCondition(cnd)
   21. └─(function (e) ...
   22.   ├─vctrs::vec_size(rows[[i]])
   23.   ├─rows[[i]]
   24.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  ── Error (test-json_structure.R:179:3): imputed document.id works ──────────────
  Error: Invalid index: out of bounds
  Backtrace:
       █
    1. ├─`%>%`(...) test-json_structure.R:179:2
    2. ├─tidyjson::json_structure(.)
    3. │ └─tidyjson:::json_structure_init(.x)
    4. │   └─`%>%`(...)
    5. ├─tidyjson::json_lengths(.)
    6. │ └─tidyjson::is.tbl_json(.x)
    7. ├─tidyjson::json_types(.)
    8. │ └─tidyjson::is.tbl_json(.x)
    9. ├─dplyr::mutate(...)
   10. ├─tidyjson:::mutate.tbl_json(...)
   11. ├─base::NextMethod(generic, .data)
   12. ├─dplyr:::mutate.data.frame(...)
   13. │ └─dplyr:::mutate_cols(.data, ...)
   14. │   ├─base::withCallingHandlers(...)
   15. │   └─mask$eval_all_mutate(dots[[i]])
   16. ├─dplyr:::abort_glue(character(0), list(x_size = 0L), "dplyr:::mutate_incompatible_size")
   17. │ ├─rlang::exec(abort, class = class, !!!.envir)
   18. │ └─(function (message = NULL, class = NULL, ..., trace = NULL, parent = NULL, ...
   19. │   └─rlang:::signal_abort(cnd)
   20. │     └─base::signalCondition(cnd)
   21. └─(function (e) ...
   22.   ├─vctrs::vec_size(rows[[i]])
   23.   ├─rows[[i]]
   24.   └─vctrs:::`[[.vctrs_list_of`(rows, i)
  
  [ FAIL 11 | WARN 0 | SKIP 10 | PASS 339 ]
  Error: Test failures
  Execution halted