Running ‘testthat.R’ [8s/61s]
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 from dataset with multiword dimnames xts (@test_xts_zoo.R#
  Client error: (403) Forbidden
  1: Knoema("eqohmpb", list(Country = "512", Indicator = "NGDP;NGDP_D", frequency = "A;M"), 
         type = "xts", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:147
  2: data.reader$GetObjectByType(type)
  3: reader$LoadDimensions()
  4: Dimension(reader$client$GetDimension(reader$get("dataset")$id, dim$id))
  5: DimensionModel(data)
  6: reader$client$GetDimension(reader$get("dataset")$id, dim$id)
  7: client$ApiGet(sprintf(path, dataset.id, dimension.name))
  
  ── 2. Error: get data multi series by member key zoo (@test_xts_zoo.R#169)  ────
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Oct", list(country = "1000010;1000000;1001830", subject = "1000370;1000040"), 
         type = "zoo", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:169
  2: data.reader$GetObjectByType(type)
  3: reader$LoadDimensions()
  4: Dimension(reader$client$GetDimension(reader$get("dataset")$id, dim$id))
  5: DimensionModel(data)
  6: reader$client$GetDimension(reader$get("dataset")$id, dim$id)
  7: client$ApiGet(sprintf(path, dataset.id, dimension.name))
  
  ── 3. Error: get data from dataset by dim ids xts (@test_xts_zoo.R#184)  ───────
  Client error: (403) Forbidden
  1: Knoema("eqohmpb", list(country = "512", indicator = "NGDP;NGDP_D", frequency = "A;M"), 
         type = "xts", client.id = "bHcV5UkOVyKcBw", client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:184
  2: data.reader$GetObjectByType(type)
  3: reader$LoadDimensions()
  4: Dimension(reader$client$GetDimension(reader$get("dataset")$id, dim$id))
  5: DimensionModel(data)
  6: reader$client$GetDimension(reader$get("dataset")$id, dim$id)
  7: client$ApiGet(sprintf(path, dataset.id, dimension.name))
  
  ── 4. Error: get series from dataset by partial selection xts (@test_xts_zoo.R#2
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Oct", list(subject = "flibor6"), type = "xts", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:205
  2: data.reader$GetObjectByType(type)
  3: reader$LoadDimensions()
  4: Dimension(reader$client$GetDimension(reader$get("dataset")$id, dim$id))
  5: DimensionModel(data)
  6: reader$client$GetDimension(reader$get("dataset")$id, dim$id)
  7: client$ApiGet(sprintf(path, dataset.id, dimension.name))
  
  ── 5. Error: get series from dataset by partial selection zoo (@test_xts_zoo.R#2
  Client error: (403) Forbidden
  1: Knoema("IMFWEO2017Oct", list(subject = "flibor6"), type = "zoo", client.id = "bHcV5UkOVyKcBw", 
         client.secret = "/0itYgLqnD0i49kmdBVSZ1qLjPU") at testthat/test_xts_zoo.R:219
  2: data.reader$GetObjectByType(type)
  3: reader$LoadDimensions()
  4: Dimension(reader$client$GetDimension(reader$get("dataset")$id, dim$id))
  5: DimensionModel(data)
  6: reader$client$GetDimension(reader$get("dataset")$id, dim$id)
  7: client$ApiGet(sprintf(path, dataset.id, dimension.name))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 219 SKIPPED: 0 FAILED: 5
  1. Error: get data from dataset with multiword dimnames xts (@test_xts_zoo.R#147) 
  2. Error: get data multi series by member key zoo (@test_xts_zoo.R#169) 
  3. Error: get data from dataset by dim ids xts (@test_xts_zoo.R#184) 
  4. Error: get series from dataset by partial selection xts (@test_xts_zoo.R#205) 
  5. Error: get series from dataset by partial selection zoo (@test_xts_zoo.R#219) 
  
  Error: testthat unit tests failed
  Execution halted