Running 'testthat.R' [60s]
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)  -----------------------------
  Server error: (503) Service Unavailable
  1: Knoema("IMFWEO2017Oct", list(country = "914", subject = "lp"), type = "DataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:3
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 2. Error: get data frame with multi selection (@test_dataframe.R#10)  -------
  Server error: (503) Service Unavailable
  1: Knoema("IMFWEO2017Oct", list(frequency = "A", Country = "914;612;512", Subject = "LP;NID_NGDP"), 
         type = "DataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:10
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 3. Error: get metadata frame (@test_dataframe.R#19)  ------------------------
  Server error: (503) Service Unavailable
  1: Knoema("IMFWEO2017Oct", list(country = "914", subject = "lp"), type = "MetaDataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:19
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 4. Error: get metadata frame with multi selection (@test_dataframe.R#27)  ---
  Server error: (503) Service Unavailable
  1: Knoema("IMFWEO2017Oct", list(frequency = "A", Country = "914;612;512", Subject = "LP;NID_NGDP"), 
         type = "MetaDataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:27
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 5. Error: get series from dataset by partial selection (@test_dataframe.R#37)
  Server error: (503) Service Unavailable
  1: Knoema("IMFWEO2017Oct", list(subject = "flibor6"), type = "DataFrame", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:37
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 6. Error: get series from dataset by partial selection (@test_dataframe.R#47)
  Server error: (503) Service Unavailable
  1: Knoema("IMFWEO2017Oct", list(subject = "flibor6"), type = "MetaDataFrame", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:47
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 7. Error: get series from dataset by weekly frequency DataFame (@test_datafra
  Server error: (503) Service Unavailable
  1: Knoema("eqohmpb", list(country = "512", Indicator = "NGDP", frequency = "W"), type = "DataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:59
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 8. Error: get all series from dataset (@test_dataframe.R#68)  ---------------
  Server error: (503) Service Unavailable
  1: Knoema("eqohmpb", type = "DataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:68
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 9. Error: get all series from dataset with empty list (@test_dataframe.R#74) 
  Server error: (503) Service Unavailable
  1: Knoema("eqohmpb", list(), type = "DataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_dataframe.R:74
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 10. Failure: test wrong dimension error error (@test_errors.R#18)  ----------
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Dimension with id or name indicator is not found"
  Actual message: "Server error: (503) Service Unavailable"
  
  -- 11. Failure: test empty dimension selection error (@test_errors.R#23)  ------
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Selection for dimension Country is empty"
  Actual message: "Server error: (503) Service Unavailable"
  
  -- 12. Failure: test wrong dimension selection error (@test_errors.R#29)  ------
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Selection for dimension Subject is empty"
  Actual message: "Server error: (503) Service Unavailable"
  
  -- 13. Failure: test incorrect dataset id error (@test_errors.R#35)  -----------
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Requested dataset doesn't exist or you don't have access to it."
  Actual message: "Client error: (404) Not Found"
  
  -- 14. Failure: test incorrect client.id and client.secret error (@test_errors.R
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Client error: (403) Forbidden"
  Actual message: "Client error: (404) Not Found"
  
  -- 15. Failure: test incorrect frequencies error (@test_errors.R#45)  ----------
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "The following frequencies are not correct: G,R"
  Actual message: "Client error: (404) Not Found"
  
  -- 16. Failure: test unknown type error (@test_errors.R#57)  -------------------
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Unknown type incorrect_type"
  Actual message: "Client error: (404) Not Found"
  
  -- 17. Failure: get data from flat dataset ts error (@test_flat_dataset.R#3)  --
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Types ts, xts, zoo are not supported for flat datasets"
  Actual message: "Client error: (404) Not Found"
  
  -- 18. Failure: get data from flat dataset xts error (@test_flat_dataset.R#9)  -
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Types ts, xts, zoo are not supported for flat datasets"
  Actual message: "Client error: (404) Not Found"
  
  -- 19. Failure: get data from flat dataset zoo error (@test_flat_dataset.R#15)  
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Types ts, xts, zoo are not supported for flat datasets"
  Actual message: "Client error: (404) Not Found"
  
  -- 20. Error: get data from flat dataset DataFrame (@test_flat_dataset.R#21)  --
  Client error: (404) Not Found
  1: Knoema("cblymmf", list(Country = "Albania;Australia", Keyword = "FGP;TWP;TRP"), type = "DataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_flat_dataset.R:21
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 21. Error: get data from flat dataset MetaDataFrame (@test_flat_dataset.R#31)
  Client error: (404) Not Found
  1: Knoema("cblymmf", list(Country = "Albania;Australia", Keyword = "FGP;TWP;TRP"), type = "MetaDataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_flat_dataset.R:31
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 22. Error: search by mnememonics - annual - MetaDataframe one dataset (@test_
  Client error: (404) Not Found
  1: Knoema("eqohmpb", mnemonics = "512NGDP_A_in_test_dataset", type = "MetaDataFrame", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_search_by_mnemonics.R:3
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 23. Error: search by mnememonics - semiannual, daily - DataFrame one dataset 
  Client error: (404) Not Found
  1: Knoema("eqohmpb", mnemonics = "512NGDP_S_in_test_dataset;512NGDP_D_in_test_dataset", 
         type = "DataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_search_by_mnemonics.R:11
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 24. Error: search by mnememonics - quarterly, monthly - ts one dataset (@test
  Client error: (404) Not Found
  1: Knoema("eqohmpb", mnemonics = "512NGDP_Q_in_test_dataset;512NGDP_M_in_test_dataset", 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_search_by_mnemonics.R:22
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 25. Error: search by mnememonics - annual - MetaDataframe all datasets (@test
  Client error: (404) Not Found
  1: Knoema(NULL, mnemonics = "512NGDP_A_in_test_dataset", type = "MetaDataFrame", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_search_by_mnemonics.R:36
  2: data.reader$GetObjectByType(type)
  3: reader$GetObjectForSearchingByMnemonicsAccrossDatasets(type, result)
  4: reader$client$GetMnemonics(reader$mnemonics)
  5: client$ApiGet(sprintf(path, mnemonics))
  
  -- 26. Error: search by mnememonics - semiannual, daily - DataFrame all datasets
  Client error: (404) Not Found
  1: Knoema(dataset = NULL, mnemonics = "512NGDP_S_in_test_dataset;512NGDP_D_in_test_dataset", 
         type = "DataFrame", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_search_by_mnemonics.R:44
  2: data.reader$GetObjectByType(type)
  3: reader$GetObjectForSearchingByMnemonicsAccrossDatasets(type, result)
  4: reader$client$GetMnemonics(reader$mnemonics)
  5: client$ApiGet(sprintf(path, mnemonics))
  
  -- 27. Error: search by mnememonics - quarterly, monthly - ts all datasets (@tes
  Client error: (404) Not Found
  1: Knoema(mnemonics = "512NGDP_Q_in_test_dataset;512NGDP_M_in_test_dataset", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_search_by_mnemonics.R:55
  2: data.reader$GetObjectByType(type)
  3: reader$GetObjectForSearchingByMnemonicsAccrossDatasets(type, result)
  4: reader$client$GetMnemonics(reader$mnemonics)
  5: client$ApiGet(sprintf(path, mnemonics))
  
  -- 28. Error: get data single series by member id ts (@test_ts.R#3)  -----------
  Client error: (404) Not Found
  1: Knoema("IMFWEO2017Oct", list(country = "914", subject = "lp"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:3
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 29. Error: get data multi series by member id ts (@test_ts.R#16)  -----------
  Client error: (404) Not Found
  1: Knoema("IMFWEO2017Oct", list(country = "914;512;111", subject = "lp;ngdp"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:16
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 30. Error: get data multi series by member name (@test_ts.R#32)  ------------
  Client error: (404) Not Found
  1: Knoema("IMFWEO2017Oct", list(country = "albania;afghanistan;united states", subject = subj_names), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:32
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 31. Error: get data multi series by member id range (@test_ts.R#47)  --------
  Client error: (404) Not Found
  1: Knoema("IMFWEO2017Oct", list(country = "914;512;111", subject = "lp;ngdp", timerange = "2015-2020"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:47
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 32. Error: get data single series different frequencies by member id ts (@tes
  Client error: (404) Not Found
  1: Knoema("eqohmpb", list(country = "512", Indicator = "NGDP"), client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:62
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 33. Error: get data multi series single frequency by member id ts (@test_ts.R
  Client error: (404) Not Found
  1: Knoema("eqohmpb", list(country = "512", Indicator = "NGDP;NGDP_D", frequency = "M"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:87
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 34. Error: get data multi series multi frequency by member id ts (@test_ts.R#
  Client error: (404) Not Found
  1: Knoema("eqohmpb", list(country = "512", Indicator = "NGDP;NGDP_D", frequency = "A;M"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:110
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 35. Error: get data multi series multi frequency by member id range ts (@test
  Client error: (404) Not Found
  1: Knoema("eqohmpb", list(country = "512", Indicator = "NGDP;NGDP_D", frequency = "A;M", 
         timerange = "2004M1-2006M12"), client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:133
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 36. Error: get data from dataset with multiword dimnames ts (@test_ts.R#155) 
  Client error: (404) Not Found
  1: Knoema("eqohmpb", list(Country = "512", Indicator = "NGDP"), type = "ts", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:155
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 37. Error: get data multi series by member key ts (@test_ts.R#181)  ---------
  Client error: (404) Not Found
  1: Knoema("IMFWEO2017Oct", list(country = "1000010;1000000;1001830", subject = "1000370;1000040"), 
         client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:181
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  -- 38. Error: get data from dataset by dim ids ts (@test_ts.R#196)  ------------
  Client error: (404) Not Found
  1: Knoema("eqohmpb", list(country = "512", Indicator = "NGDP"), type = "ts", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_ts.R:196
  2: client$GetDataset(dataset.id)
  3: client$ApiGet(sprintf(path, dataset.id))
  
  == testthat results  ===========================================================
  OK: 111 SKIPPED: 0 FAILED: 38
  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. Error: get series from dataset by partial selection (@test_dataframe.R#37) 
  6. Error: get series from dataset by partial selection (@test_dataframe.R#47) 
  7. Error: get series from dataset by weekly frequency DataFame (@test_dataframe.R#59) 
  8. Error: get all series from dataset (@test_dataframe.R#68) 
  9. Error: get all series from dataset with empty list (@test_dataframe.R#74) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted