Running ‘testthat.R’ [3s/12s]
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 frame (@test_dataframe.R#3) ---------------------------------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(country = "914", subject = "lp"), type = "DataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:3
  
  2. Error: get data frame with multi selection (@test_dataframe.R#10) -----------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(frequency = "A", Country = "914;612;512", Subject = "LP;NID_NGDP"), 
         "DataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:10
  
  3. Error: get metadata frame (@test_dataframe.R#19) ----------------------------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(country = "914", subject = "lp"), type = "MetaDataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:19
  
  4. Error: get metadata frame with multi selection (@test_dataframe.R#27) -------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(frequency = "A", Country = "914;612;512", Subject = "LP;NID_NGDP"), 
         "MetaDataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:27
  
  5. Failure: test selection is not specified error (@test_errors.R#13) ----------
  error$message does not match "argument \"selection\" is missing, with no default".
  Actual value: "Requested dataset doesn't exist or you don't have access to it."
  
  
  6. Failure: test wrong dimension error error (@test_errors.R#18) ---------------
  error$message does not match "Dimension with id or name indicator is not found".
  Actual value: "Requested dataset doesn't exist or you don't have access to it."
  
  
  7. Failure: test empty dimension selection error (@test_errors.R#23) -----------
  error$message does not match "Selection for dimension Country is empty".
  Actual value: "Requested dataset doesn't exist or you don't have access to it."
  
  
  8. Failure: test wrong dimension selection error (@test_errors.R#29) -----------
  error$message does not match "Selection for dimension Subject is empty".
  Actual value: "Requested dataset doesn't exist or you don't have access to it."
  
  
  9. Failure: test incorect frequencies error (@test_errors.R#57) ----------------
  error$message does not match "The following frequencies are not correct: G,R".
  Actual value: "Requested dataset doesn't exist or you don't have access to it."
  
  
  10. Error: get data single series by member id ts (@test_ts.R#3) ---------------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(country = "914", subject = "lp"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:3
  
  11. Error: get data multi series by member id ts (@test_ts.R#16) ---------------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(country = "914;512;111", subject = "lp;ngdp"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:16
  
  12. Error: get data multi series by member name (@test_ts.R#31) ----------------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(country = "albania;afghanistan;united states", subject = subj_names), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:31
  
  13. Error: get data multi series by member id range (@test_ts.R#45) ------------
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  14. Error: get data single series different frequencies by member id ts (@test_ts.R#59) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  15. Error: get data multi series single frequency by member id ts (@test_ts.R#84) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  16. Error: get data multi series multi frequency by member id ts (@test_ts.R#98) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  17. Error: get data multi series multi frequency by member id range ts (@test_ts.R#112) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  18. Error: get data from dataset with multiword dimnames ts (@test_ts.R#126) ---
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  19. Error: get data multi series by member key ts (@test_ts.R#149) -------------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(country = "1000010;1000000;1001830", subject = "1000370;1000040"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:149
  
  20. Error: get data from dataset by dim ids ts (@test_ts.R#164) ----------------
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  21. Error: get data single series by member id xts (@test_xts_zoo.R#4) ---------
  Requested dataset doesn't exist or you don't have access to it.
  1: Knoema("IMFWEO2017Apr", list(country = "914", subject = "lp"), type = "xts", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:4
  
  22. Error: get data multi series by member id zoo (@test_xts_zoo.R#17) ---------
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  23. Error: get data multi series by member name xts (@test_xts_zoo.R#32) -------
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  24. Error: get data multi series by member id range zoo (@test_xts_zoo.R#46) ---
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  25. Error: get data single series different frequencies by member id xts (@test_xts_zoo.R#60) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  26. Error: get data multi series single frequency by member id zoo (@test_xts_zoo.R#85) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  27. Error: get data multi series multi frequency by member id xts (@test_xts_zoo.R#99) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  28. Error: get data multi series multi frequency by member id range zoo (@test_xts_zoo.R#113) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  29. Error: get data from dataset with multiword dimnames xts (@test_xts_zoo.R#127) 
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  30. Error: get data multi series by member key zoo (@test_xts_zoo.R#150) -------
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  31. Error: get data from dataset by dim ids xts (@test_xts_zoo.R#165) ----------
  Requested dataset doesn't exist or you don't have access to it.
  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
  
  testthat results ================================================================
  OK: 6 SKIPPED: 0 FAILED: 31
  1. Error: get data frame (@test_dataframe.R#3) 
  2. Error: get data frame with multi selection (@test_dataframe.R#10) 
  3. Error: get metadata frame (@test_dataframe.R#19) 
  4. Error: get metadata frame with multi selection (@test_dataframe.R#27) 
  5. Failure: test selection is not specified error (@test_errors.R#13) 
  6. Failure: test wrong dimension error error (@test_errors.R#18) 
  7. Failure: test empty dimension selection error (@test_errors.R#23) 
  8. Failure: test wrong dimension selection error (@test_errors.R#29) 
  9. Failure: test incorect frequencies error (@test_errors.R#57) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted