Running ‘testthat.R’ [7s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(Knoema)
  > library(zoo)
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  > 
  > test_check("Knoema")
  1. Failure: get data single series different frequencies by member id ts (@test_ts.R#64) 
  is.ts(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  2. Failure: get data single series different frequencies by member id ts (@test_ts.R#67) 
  time_ser[1] not equal to -5.
  target is NULL, current is numeric
  
  
  3. Error: get data single series different frequencies by member id ts (@test_ts.R#68) 
  attempt to set an attribute on NULL
  1: window(time_ser, start = c(2017, 6), frequency = 12) at testthat/test_ts.R:68
  2: window.default(time_ser, start = c(2017, 6), frequency = 12)
  3: hasTsp(x)
  
  4. Failure: get data multi series single frequency by member id ts (@test_ts.R#89) 
  is.ts(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  5. Error: get data multi series single frequency by member id ts (@test_ts.R#92) 
  attempt to set an attribute on NULL
  1: window(time_ser, start = c(2017, 1), frequency = 4) at testthat/test_ts.R:92
  2: window.default(time_ser, start = c(2017, 1), frequency = 4)
  3: hasTsp(x)
  
  6. Failure: get data multi series multi frequency by member id ts (@test_ts.R#103) 
  is.ts(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  7. Error: get data multi series multi frequency by member id ts (@test_ts.R#106) 
  attempt to set an attribute on NULL
  1: window(time_ser, start = c(2017, 3), frequency = 12) at testthat/test_ts.R:106
  2: window.default(time_ser, start = c(2017, 3), frequency = 12)
  3: hasTsp(x)
  
  8. Failure: get data multi series multi frequency by member id range ts (@test_ts.R#117) 
  is.ts(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  9. Error: get data multi series multi frequency by member id range ts (@test_ts.R#120) 
  attempt to set an attribute on NULL
  1: window(time_ser, start = c(2012, 12), frequency = 12) at testthat/test_ts.R:120
  2: window.default(time_ser, start = c(2012, 12), frequency = 12)
  3: hasTsp(x)
  
  10. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#65) 
  is.xts(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  11. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#66) 
  is.zoo(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  12. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#68) 
  coredata(time_ser)[1] not equal to -5.
  target is NULL, current is numeric
  
  
  13. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#70) 
  `value` not equal to 5.1.
  target is NULL, current is numeric
  
  
  14. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#74) 
  is.xts(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  15. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#75) 
  is.zoo(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  16. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#77) 
  coredata(time_ser)[1] not equal to -5.233333.
  target is NULL, current is numeric
  
  
  17. Failure: get data single series different frequencies by member id xts (@test_xts_zoo.R#80) 
  `value` not equal to 1.566667.
  target is NULL, current is numeric
  
  
  18. Failure: get data multi series single frequency by member id zoo (@test_xts_zoo.R#91) 
  is.zoo(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  19. Failure: get data multi series single frequency by member id zoo (@test_xts_zoo.R#94) 
  `value` not equal to 1.566667.
  target is NULL, current is numeric
  
  
  20. Failure: get data multi series multi frequency by member id xts (@test_xts_zoo.R#104) 
  is.xts(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  21. Failure: get data multi series multi frequency by member id xts (@test_xts_zoo.R#105) 
  is.zoo(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  22. Failure: get data multi series multi frequency by member id xts (@test_xts_zoo.R#108) 
  `value` not equal to 2.4.
  target is NULL, current is numeric
  
  
  23. Failure: get data multi series multi frequency by member id range zoo (@test_xts_zoo.R#119) 
  is.zoo(time_ser) not equal to TRUE.
  1 element mismatch
  
  
  24. Failure: get data multi series multi frequency by member id range zoo (@test_xts_zoo.R#122) 
  `value` not equal to -12.4.
  target is NULL, current is numeric
  
  
  testthat results ================================================================
  OK: 115 SKIPPED: 0 FAILED: 24
  1. Failure: get data single series different frequencies by member id ts (@test_ts.R#64) 
  2. Failure: get data single series different frequencies by member id ts (@test_ts.R#67) 
  3. Error: get data single series different frequencies by member id ts (@test_ts.R#68) 
  4. Failure: get data multi series single frequency by member id ts (@test_ts.R#89) 
  5. Error: get data multi series single frequency by member id ts (@test_ts.R#92) 
  6. Failure: get data multi series multi frequency by member id ts (@test_ts.R#103) 
  7. Error: get data multi series multi frequency by member id ts (@test_ts.R#106) 
  8. Failure: get data multi series multi frequency by member id range ts (@test_ts.R#117) 
  9. Error: get data multi series multi frequency by member id range ts (@test_ts.R#120) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted