Running ‘testthat.R’ [11s/53s]
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
  
  
  25. Error: get data multi series by member key zoo (@test_xts_zoo.R#150) -------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "1000010;1000000;1001830", subject = "1000370;1000040"), 
         "zoo", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:150
  2: data.reader$GetFrame(type)
  3: reader$CreatePivotRequest()
  4: Dimension(reader$client$GetDimension(reader$dataset$id, dim$id))
  5: reader$client$GetDimension(reader$dataset$id, dim$id)
  6: client$ApiGet(sprintf(path, dataset.id, dimension.name))
  
  26. Error: get data from dataset by dim ids xts (@test_xts_zoo.R#165) ----------
  Client error: (403) Forbidden
  1: Knoema("FDI_FLOW_CTRY", list(`Reporting-country` = "AUS", `Partner-country` = "w0", 
         `Measurement-principle` = "DI", `Type-of-FDI` = "T_FA_F", `Type-of-entity` = "ALL", 
         `Accounting-entry` = "NET", `Level-of-counterpart` = "IMC", Currency = "USD"), 
         "xts", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:165
  2: data.reader$GetFrame(type)
  3: reader$CreatePivotRequest()
  4: Dimension(reader$client$GetDimension(reader$dataset$id, dim$id))
  5: reader$client$GetDimension(reader$dataset$id, dim$id)
  6: client$ApiGet(sprintf(path, dataset.id, dimension.name))
  
  testthat results ================================================================
  OK: 103 SKIPPED: 0 FAILED: 26
  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