Running ‘testthat.R’ [4s/28s]
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")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_dataframe.R:3:3): get data frame ────────────────────────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:3:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:10:3): get data frame with multi selection ──────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:10:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:19:3): get metadata frame ───────────────────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:19:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:27:3): get metadata frame with multi selection ──────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:27:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:37:3): get series from dataset by partial selection ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:37:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:47:3): get series from dataset by partial selection ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:47:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:59:3): get series from dataset by weekly frequency DataFame ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:59:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:68:3): get all series from dataset ──────────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:68:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_dataframe.R:74:3): get all series from dataset with empty list ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_dataframe.R:74:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_errors.R:18:3): test wrong dimension error error ──────────────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Dimension with id or name indicator is not found"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_errors.R:18:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_errors.R:23:3): test empty dimension selection error ──────────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Selection for dimension Country is empty"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_errors.R:23:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_errors.R:29:3): test wrong dimension selection error ──────────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Selection for dimension Subject is empty"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_errors.R:29:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_errors.R:45:3): test incorrect frequencies error ──────────────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "The following frequencies are not correct: G,R"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_errors.R:45:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_errors.R:57:3): test unknown type error ───────────────────────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Unknown type incorrect_type"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_errors.R:57:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_flat_dataset.R:3:3): get data from flat dataset ts error ──────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Types ts, xts, zoo are not supported for flat datasets"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_flat_dataset.R:3:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_flat_dataset.R:9:3): get data from flat dataset xts error ─────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Types ts, xts, zoo are not supported for flat datasets"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_flat_dataset.R:9:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Failure (test_flat_dataset.R:15:3): get data from flat dataset zoo error ────
  `Knoema(...)` threw an error with unexpected message.
  Expected match: "Types ts, xts, zoo are not supported for flat datasets"
  Actual message: "Client error: (403) Forbidden"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_flat_dataset.R:15:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─Knoema::Knoema(...)
   7.   └─client$GetDataset(dataset.id)
   8.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_flat_dataset.R:21:3): get data from flat dataset DataFrame ──────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_flat_dataset.R:21:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_flat_dataset.R:31:3): get data from flat dataset MetaDataFrame ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_flat_dataset.R:31:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_search_by_mnemonics.R:3:3): search by mnememonics - annual - MetaDataframe one dataset ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_search_by_mnemonics.R:3:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_search_by_mnemonics.R:11:3): search by mnememonics - semiannual, daily - DataFrame one dataset ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_search_by_mnemonics.R:11:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_search_by_mnemonics.R:22:3): search by mnememonics - quarterly, monthly - ts one dataset ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_search_by_mnemonics.R:22:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_search_by_mnemonics.R:36:3): search by mnememonics - annual - MetaDataframe all datasets ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_search_by_mnemonics.R:36:2
   2.   └─data.reader$GetObjectByType(type)
   3.     └─reader$GetObjectForSearchingByMnemonicsAccrossDatasets(...)
   4.       ├─Knoema:::Dataset(reader$client$GetDataset(dataset.id))
   5.       └─reader$client$GetDataset(dataset.id)
   6.         └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:3:3): get data single series by member id ts ───────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:3:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:16:3): get data multi series by member id ts ───────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:16:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:32:3): get data multi series by member name ────────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:32:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:47:3): get data multi series by member id range ────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:47:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:62:3): get data single series different frequencies by member id ts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:62:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:87:3): get data multi series single frequency by member id ts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:87:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:110:3): get data multi series multi frequency by member id ts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:110:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:133:3): get data multi series multi frequency by member id range ts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:133:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:155:3): get data from dataset with multiword dimnames ts ───
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:155:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:181:3): get data multi series by member key ts ─────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:181:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:196:3): get data from dataset by dim ids ts ────────────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:196:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_ts.R:221:2): get series from dataset by partial selection ts ────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_ts.R:221:1
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:4:3): get data single series by member id xts ─────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:4:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:15:3): get data multi series by member id zoo ─────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:15:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:31:3): get data multi series by member name xts ───────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:31:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:44:3): get data multi series by member id range zoo ───
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:44:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:59:3): get data single series different frequencies by member id xts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:59:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:81:3): get data multi series single frequency by member id zoo ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:81:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:104:3): get data multi series multi frequency by member id xts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:104:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:125:3): get data multi series multi frequency by member id range zoo ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:125:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:147:3): get data from dataset with multiword dimnames xts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:147:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:169:3): get data multi series by member key zoo ───────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:169:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:184:3): get data from dataset by dim ids xts ──────────
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:184:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:205:3): get series from dataset by partial selection xts ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:205:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  ── Error (test_xts_zoo.R:219:3): get series from dataset by partial selection zoo ──
  Error: Client error: (403) Forbidden
  Backtrace:
      █
   1. └─Knoema::Knoema(...) test_xts_zoo.R:219:2
   2.   └─client$GetDataset(dataset.id)
   3.     └─client$ApiGet(sprintf(path, dataset.id))
  
  [ FAIL 48 | WARN 0 | SKIP 0 | PASS 13 ]
  Error: Test failures
  Execution halted