Running ‘testthat.R’ [2s/52s]
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: test empty dimension selection error (@test_errors.R#23) -----------
  error$message does not match "Selection for dimension Country is empty".
  Actual value: "Client error: (403) Forbidden"
  
  
  2. Failure: test wrong dimension selection error (@test_errors.R#29) -----------
  error$message does not match "Selection for dimension Subject is empty".
  Actual value: "Client error: (403) Forbidden"
  
  
  3. Failure: test not all dims in filter error (@test_errors.R#45) --------------
  error$message does not match "The following dimension(s) are not set: Currency of Commitment,Measure".
  Actual value: "Client error: (403) Forbidden"
  
  
  4. Failure: test incorect frequencies error (@test_errors.R#57) ----------------
  error$message does not match "The following frequencies are not correct: G,R".
  Actual value: "Client error: (403) Forbidden"
  
  
  5. Error: get data single series by member id ts (@test_ts.R#3) ----------------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "914", subject = "lp"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:3
  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))
  
  6. Error: get data multi series by member id ts (@test_ts.R#16) ----------------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "914;512;111", subject = "lp;ngdp"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:16
  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))
  
  7. Error: get data multi series by member name (@test_ts.R#31) -----------------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "albania;afghanistan;united states", subject = subj_names), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:31
  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))
  
  8. Error: get data multi series by member id range (@test_ts.R#45) -------------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "914;512;111", subject = "lp;ngdp", timerange = "2015-2020"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:45
  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))
  
  9. Error: get data single series different frequencies by member id ts (@test_ts.R#59) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT", subject = "BSCI", measure = "blsa"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:59
  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))
  
  10. Error: get data multi series single frequency by member id ts (@test_ts.R#84) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT;AU", subject = "BSCI", measure = "blsa", 
         frequency = "Q"), client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:84
  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))
  
  11. Error: get data multi series multi frequency by member id ts (@test_ts.R#98) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT;AU", subject = "BSCI", measure = "blsa", 
         frequency = "Q;M"), client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:98
  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))
  
  12. Error: get data multi series multi frequency by member id range ts (@test_ts.R#112) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT;BE", subject = "BSCI", measure = "blsa", 
         frequency = "Q;M", timerange = "2010M1-2015M11"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:112
  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))
  
  13. Error: get data from dataset with multiword dimnames ts (@test_ts.R#126) ---
  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"), 
         "ts", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:126
  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))
  
  14. Error: get data multi series by member key ts (@test_ts.R#149) -------------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "1000010;1000000;1001830", subject = "1000370;1000040"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:149
  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))
  
  15. Error: get data from dataset by dim ids ts (@test_ts.R#164) ----------------
  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"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:164
  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))
  
  16. Error: get data single series by member id xts (@test_xts_zoo.R#4) ---------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "914", subject = "lp"), type = "xts", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:4
  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))
  
  17. Error: get data multi series by member id zoo (@test_xts_zoo.R#17) ---------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "914;512;111", subject = "lp;ngdp"), type = "zoo", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:17
  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))
  
  18. Error: get data multi series by member name xts (@test_xts_zoo.R#32) -------
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "albania;afghanistan;united states", subject = subj_names), 
         type = "xts", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:32
  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))
  
  19. Error: get data multi series by member id range zoo (@test_xts_zoo.R#46) ---
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Apr", list(country = "914;512;111", subject = "lp;ngdp", timerange = "2015-2020"), 
         type = "zoo", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:46
  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))
  
  20. Error: get data single series different frequencies by member id xts (@test_xts_zoo.R#60) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT", subject = "BSCI", measure = "blsa"), 
         type = "xts", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:60
  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))
  
  21. Error: get data multi series single frequency by member id zoo (@test_xts_zoo.R#85) 
  Client error: (403) Forbidden
  1: Knoema("MEI_BTS_COS_2015", list(location = "AT;AU", subject = "BSCI", measure = "blsa", 
         frequency = "Q"), type = "zoo", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:85
  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))
  
  22. 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))
  
  23. 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))
  
  24. 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))
  
  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: 6 SKIPPED: 0 FAILED: 26
  1. Failure: test empty dimension selection error (@test_errors.R#23) 
  2. Failure: test wrong dimension selection error (@test_errors.R#29) 
  3. Failure: test not all dims in filter error (@test_errors.R#45) 
  4. Failure: test incorect frequencies error (@test_errors.R#57) 
  5. Error: get data single series by member id ts (@test_ts.R#3) 
  6. Error: get data multi series by member id ts (@test_ts.R#16) 
  7. Error: get data multi series by member name (@test_ts.R#31) 
  8. Error: get data multi series by member id range (@test_ts.R#45) 
  9. Error: get data single series different frequencies by member id ts (@test_ts.R#59) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted