Running 'testthat.R' [112s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pageviews)
  > 
  > test_check("pageviews")
  [ FAIL 11 | WARN 0 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test.R:4:3): basic project pageview queries work ─────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10002 milliseconds
  Backtrace:
       ▆
    1. └─pageviews::project_pageviews() at test.R:4:2
    2.   └─pageviews:::pageviews(...)
    3.     └─pageviews:::pv_query(parameters, reformat, ...)
    4.       └─base::lapply(...)
    5.         └─pageviews (local) FUN(X[[i]], ...)
    6.           └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:18:3): Basic top-article queries work ─────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10008 milliseconds
  Backtrace:
      ▆
   1. └─pageviews::top_articles() at test.R:18:2
   2.   └─pageviews:::pv_query(parameters, reformat, ...)
   3.     └─base::lapply(...)
   4.       └─pageviews (local) FUN(X[[i]], ...)
   5.         └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:32:3): Basic per-article queries work ─────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10012 milliseconds
  Backtrace:
       ▆
    1. └─pageviews::article_pageviews() at test.R:32:2
    2.   └─pageviews:::pageviews(...)
    3.     └─pageviews:::pv_query(parameters, reformat, ...)
    4.       └─base::lapply(...)
    5.         └─pageviews (local) FUN(X[[i]], ...)
    6.           └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:52:3): Basic per-article queries work (with date objects) ─────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10010 milliseconds
  Backtrace:
       ▆
    1. └─pageviews::article_pageviews(start = Sys.Date() - 10, end = Sys.Date()) at test.R:52:2
    2.   └─pageviews:::pageviews(...)
    3.     └─pageviews:::pv_query(parameters, reformat, ...)
    4.       └─base::lapply(...)
    5.         └─pageviews (local) FUN(X[[i]], ...)
    6.           └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:73:3): Timestamps functions work with API ─────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10013 milliseconds
  Backtrace:
       ▆
    1. └─pageviews::article_pageviews(...) at test.R:73:2
    2.   └─pageviews:::pageviews(...)
    3.     └─pageviews:::pv_query(parameters, reformat, ...)
    4.       └─base::lapply(...)
    5.         └─pageviews (local) FUN(X[[i]], ...)
    6.           └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:84:3): User type and platform can be used (pageviews). ────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10008 milliseconds
  Backtrace:
       ▆
    1. └─pageviews::article_pageviews(...) at test.R:84:2
    2.   └─pageviews:::pageviews(...)
    3.     └─pageviews:::pv_query(parameters, reformat, ...)
    4.       └─base::lapply(...)
    5.         └─pageviews (local) FUN(X[[i]], ...)
    6.           └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:94:3): Platform can be used (top_articles) ────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10006 milliseconds
  Backtrace:
      ▆
   1. └─pageviews::top_articles(...) at test.R:94:2
   2.   └─pageviews:::pv_query(parameters, reformat, ...)
   3.     └─base::lapply(...)
   4.       └─pageviews (local) FUN(X[[i]], ...)
   5.         └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:102:3): Hourly granularity works for `project_pageviews` ──────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10013 milliseconds
  Backtrace:
       ▆
    1. └─pageviews::project_pageviews(granularity = "hourly", end = "2015100123") at test.R:102:2
    2.   └─pageviews:::pageviews(...)
    3.     └─pageviews:::pv_query(parameters, reformat, ...)
    4.       └─base::lapply(...)
    5.         └─pageviews (local) FUN(X[[i]], ...)
    6.           └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:110:3): Basic old-method queries work ─────────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10008 milliseconds
  Backtrace:
      ▆
   1. └─pageviews::old_pageviews() at test.R:110:2
   2.   └─pageviews:::pv_query(parameters, reformat, old = TRUE, ...)
   3.     └─base::lapply(...)
   4.       └─pageviews (local) FUN(X[[i]], ...)
   5.         └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:125:3): Monthly granularity works for `article_pageviews` ─────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10011 milliseconds
  Backtrace:
       ▆
    1. └─pageviews::project_pageviews(granularity = "monthly", end = "2016100100") at test.R:125:2
    2.   └─pageviews:::pageviews(...)
    3.     └─pageviews:::pv_query(parameters, reformat, ...)
    4.       └─base::lapply(...)
    5.         └─pageviews (local) FUN(X[[i]], ...)
    6.           └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
    7.             └─httr:::request_perform(req, hu$handle$handle)
    8.               ├─httr:::request_fetch(req$output, req$url, handle)
    9.               └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   10.                 └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test.R:132:3): Monthly granularity works for `top_articles` ──────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [wikimedia.org] Connection timed out after 10009 milliseconds
  Backtrace:
      ▆
   1. └─pageviews::top_articles(granularity = "monthly") at test.R:132:2
   2.   └─pageviews:::pv_query(parameters, reformat, ...)
   3.     └─base::lapply(...)
   4.       └─pageviews (local) FUN(X[[i]], ...)
   5.         └─httr::GET(url, httr::user_agent("pageviews API client library - https://github.com  /Ironholds/pageviews"))
   6.           └─httr:::request_perform(req, hu$handle$handle)
   7.             ├─httr:::request_fetch(req$output, req$url, handle)
   8.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.               └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 11 | WARN 0 | SKIP 0 | PASS 3 ]
  Error: Test failures
  Execution halted