Running ‘testthat.R’ [7s/35s]
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. Error: get data multi series multi frequency by member id xts (@test_xts_zoo.R#99) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT;AU", subject = "BSCI", measure = "blsa", 
         frequency = "Q;M"), type = "xts", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:99
  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))
  
  2. Error: get data multi series multi frequency by member id range zoo (@test_xts_zoo.R#113) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT;BE", subject = "BSCI", measure = "blsa", 
         frequency = "Q;M", timerange = "2010M1-2015M11"), type = "zoo", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:113
  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))
  
  3. Error: get data from dataset with multiword dimnames xts (@test_xts_zoo.R#127) 
  Client error: (403) Forbidden
  1: Knoema("FDI_FLOW_CTRY", list(`Reporting country` = "AUS", `Partner country/territory` = "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:127
  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))
  
  4. 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))
  
  5. 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: 116 SKIPPED: 0 FAILED: 5
  1. Error: get data multi series multi frequency by member id xts (@test_xts_zoo.R#99) 
  2. Error: get data multi series multi frequency by member id range zoo (@test_xts_zoo.R#113) 
  3. Error: get data from dataset with multiword dimnames xts (@test_xts_zoo.R#127) 
  4. Error: get data multi series by member key zoo (@test_xts_zoo.R#150) 
  5. Error: get data from dataset by dim ids xts (@test_xts_zoo.R#165) 
  
  Error: testthat unit tests failed
  Execution halted