Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(wikifacts)
  > 
  > test_check("wikifacts")
  -- 1. Failure: wiki_didyouknow() generates a valid fact (@test-didyouknow.R#2)  
  `.` not equal to "Did you know".
  1/1 mismatches
  x[1]: "I got nothin"
  y[1]: "Did you know"
  
  -- 2. Failure: wiki_didyouknow() generates facts when asked for many (@test-didy
  `.` not equal to 0.
  1/1 mismatches
  [1] 1 - 0 == 1
  
  -- 3. Failure: wiki_inthenews() generates a valid fact (@test-inthenews.R#2)  --
  `.` not equal to "Here's some news".
  1/1 mismatches
  x[1]: "I got nothin'"
  y[1]: "Here's some news"
  
  -- 4. Failure: wiki_inthenews() generates facts when asked for many (@test-inthe
  `.` not equal to 0.
  1/1 mismatches
  [1] 1 - 0 == 1
  
  -- 5. Failure: wiki_onthisday() generates a valid fact (@test-onthisday.R#2)  --
  `.` not equal to "Did you know".
  1/1 mismatches
  x[1]: "I got nothin"
  y[1]: "Did you know"
  
  -- 6. Failure: wiki_onthisday() generates facts when asked for many (@test-onthi
  `.` not equal to 0.
  1/1 mismatches
  [1] 1 - 0 == 1
  
  -- 7. Failure: wiki_randomfact() generates a valid didyouknow fact (@test-random
  `.` not equal to "Did you know".
  1/1 mismatches
  x[1]: "I got nothin"
  y[1]: "Did you know"
  
  -- 8. Failure: wiki_randomfact() generates a valid inthenews fact (@test-randomf
  `.` not equal to "Here's some news".
  1/1 mismatches
  x[1]: "I got nothin'"
  y[1]: "Here's some news"
  
  -- 9. Failure: wiki_randomfact() generates a valid onthisday fact (@test-randomf
  `.` not equal to "Did you know".
  1/1 mismatches
  x[1]: "I got nothin"
  y[1]: "Did you know"
  
  -- 10. Error: wiki_query() returns expected result  ----------------------------
  cannot open the connection
  Backtrace:
   1. wikifacts::wiki_query(query)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  == testthat results  ===========================================================
  [ OK: 6 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 10 ]
  1.  Failure: wiki_didyouknow() generates a valid fact (@test-didyouknow.R#2) 
  2.  Failure: wiki_didyouknow() generates facts when asked for many (@test-didyouknow.R#8) 
  3.  Failure: wiki_inthenews() generates a valid fact (@test-inthenews.R#2) 
  4.  Failure: wiki_inthenews() generates facts when asked for many (@test-inthenews.R#8) 
  5.  Failure: wiki_onthisday() generates a valid fact (@test-onthisday.R#2) 
  6.  Failure: wiki_onthisday() generates facts when asked for many (@test-onthisday.R#8) 
  7.  Failure: wiki_randomfact() generates a valid didyouknow fact (@test-randomfact.R#2) 
  8.  Failure: wiki_randomfact() generates a valid inthenews fact (@test-randomfact.R#8) 
  9.  Failure: wiki_randomfact() generates a valid onthisday fact (@test-randomfact.R#14) 
  10. Error: wiki_query() returns expected result 
  
  Error: testthat unit tests failed
  Execution halted