Running ‘testthat.R’ [3s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(WufooR)
  > library(httr)
  > library(jsonlite)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("WufooR")
  ── 1. Error: Fields request returns 17 rows, always (@test-fieldsAndreports.R#9)
  subscript out of bounds
  1: fields_info(formIdentifier = "z5kqx7h1gtvg4g") at testthat/test-fieldsAndreports.R:9
  2: doRequest(fields_url, showURL = showRequestURL, debugConnection = debugConnection)
  3: stop_for_status(getResponse)
  4: stop(http_condition(x, "error", task = task, call = call))
  5: http_condition(x, "error", task = task, call = call)
  6: http_status(status)
  
  ── 2. Error: Reports have 11 fields (@test-fieldsAndreports.R#16)  ─────────────
  subscript out of bounds
  1: reports_info() at testthat/test-fieldsAndreports.R:16
  2: doRequest(reports_url, query, showURL = showRequestURL, debugConnection = debugConnection)
  3: stop_for_status(getResponse)
  4: stop(http_condition(x, "error", task = task, call = call))
  5: http_condition(x, "error", task = task, call = call)
  6: http_status(status)
  
  ── 3. Error: Form request returns 17 rows, always (@test-forms.R#9)  ───────────
  subscript out of bounds
  1: form_info() at testthat/test-forms.R:9
  2: doRequest(form_url, query, showURL = showRequestURL, debugConnection = debugConnection)
  3: stop_for_status(getResponse)
  4: stop(http_condition(x, "error", task = task, call = call))
  5: http_condition(x, "error", task = task, call = call)
  6: http_status(status)
  
  ── 4. Error: Form returns entries, with the requested URL (@test-forms.R#14)  ──
  subscript out of bounds
  1: form_entries(formIdentifier = "z5kqx7h1gtvg4g", systemFields = "false", showRequestURL = FALSE) at testthat/test-forms.R:14
  2: doRequest(entries_url, query, showURL = showRequestURL, debugConnection = debugConnection)
  3: stop_for_status(getResponse)
  4: stop(http_condition(x, "error", task = task, call = call))
  5: http_condition(x, "error", task = task, call = call)
  6: http_status(status)
  
  ── 5. Error: User request returns 17 rows, always (@test-users.R#9)  ───────────
  subscript out of bounds
  1: user_info() at testthat/test-users.R:9
  2: doRequest(user_url, showURL = showRequestURL, debugConnection = debugConnection)
  3: stop_for_status(getResponse)
  4: stop(http_condition(x, "error", task = task, call = call))
  5: http_condition(x, "error", task = task, call = call)
  6: http_status(status)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1 SKIPPED: 0 FAILED: 5
  1. Error: Fields request returns 17 rows, always (@test-fieldsAndreports.R#9) 
  2. Error: Reports have 11 fields (@test-fieldsAndreports.R#16) 
  3. Error: Form request returns 17 rows, always (@test-forms.R#9) 
  4. Error: Form returns entries, with the requested URL (@test-forms.R#14) 
  5. Error: User request returns 17 rows, always (@test-users.R#9) 
  
  Error: testthat unit tests failed
  Execution halted