Running ‘testthat.R’ [2s/45s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(boxoffice)
  > 
  > test_check("boxoffice")
  ── 1. Error: columns have right names (@test-column-names.R#10)  ───────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_named(boxoffice(dates = as.Date("2017-12-25")), col_names) at testthat/test-column-names.R:10
  2: quasi_label(enquo(object), label = label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: boxoffice(dates = as.Date("2017-12-25"))
  5: httr::GET(paste0(url_start, url_dates[i]), httr::user_agent(useragent))
  6: request_perform(req, hu$handle$handle)
  7: request_fetch(req$output, req$url, handle)
  8: request_fetch.write_memory(req$output, req$url, handle)
  9: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: column types are correct (@test-column-types.R#9)  ────────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_true(all(lapply(boxoffice(dates = as.Date("2017-12-25")), class) == col_types)) at testthat/test-column-types.R:9
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: lapply(boxoffice(dates = as.Date("2017-12-25")), class)
  5: boxoffice(dates = as.Date("2017-12-25"))
  6: httr::GET(paste0(url_start, url_dates[i]), httr::user_agent(useragent))
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  ── 3. Error: (unknown) (@test-column-values.R#5)  ──────────────────────────────
  Failed to connect to www.the-numbers.com port 443: No route to host
  1: boxoffice::boxoffice(dates = as.Date("2017-12-25"), site = "numbers") at testthat/test-column-values.R:5
  2: httr::GET(paste0(url_start, url_dates[i]), httr::user_agent(useragent))
  3: request_perform(req, hu$handle$handle)
  4: request_fetch(req$output, req$url, handle)
  5: request_fetch.write_memory(req$output, req$url, handle)
  6: curl::curl_fetch_memory(url, handle = handle)
  
  ── 4. Error: returns proper number of rows and columns (@test-dimmensions.R#6)  
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_equal(ncol(boxoffice(dates = as.Date("2017-12-25"))), 9) at testthat/test-dimmensions.R:6
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ncol(boxoffice(dates = as.Date("2017-12-25")))
  5: boxoffice(dates = as.Date("2017-12-25"))
  6: httr::GET(paste0(url_start, url_dates[i]), httr::user_agent(useragent))
  7: request_perform(req, hu$handle$handle)
  8: request_fetch(req$output, req$url, handle)
  9: request_fetch.write_memory(req$output, req$url, handle)
  10: curl::curl_fetch_memory(url, handle = handle)
  
  ── 5. Error: returns silent (@test-errors-silent.R#6)  ─────────────────────────
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_silent(boxoffice(dates = as.Date("2017-12-25"))) at testthat/test-errors-silent.R:6
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  5: force(code)
  6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  7: withVisible(code)
  8: eval_bare(get_expr(quo), get_env(quo))
  9: boxoffice(dates = as.Date("2017-12-25"))
  10: httr::GET(paste0(url_start, url_dates[i]), httr::user_agent(useragent))
  11: request_perform(req, hu$handle$handle)
  12: request_fetch(req$output, req$url, handle)
  13: request_fetch.write_memory(req$output, req$url, handle)
  14: curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 36 SKIPPED: 0 FAILED: 5
  1. Error: columns have right names (@test-column-names.R#10) 
  2. Error: column types are correct (@test-column-types.R#9) 
  3. Error: (unknown) (@test-column-values.R#5) 
  4. Error: returns proper number of rows and columns (@test-dimmensions.R#6) 
  5. Error: returns silent (@test-errors-silent.R#6) 
  
  Error: testthat unit tests failed
  Execution halted