Running ‘testthat.R’ [0m/19m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fingertipsR)
  > 
  > test_check("fingertipsR")
  1. Error: the area_types function works correctly (@test-area_types.R#9) -------
  Timeout was reached: Resolving timed out after 10000 milliseconds
  1: expect_equal(area_types(c("gov", "count")), area_types(AreaTypeID = c(102, 6))) at testthat/test-area_types.R:9
  2: compare(object, expected, ...)
  3: compare.default(object, expected, ...)
  4: all.equal(x, y, ...)
  5: all.equal.default(x, y, ...)
  6: area_types(AreaTypeID = c(102, 6))
  7: fromJSON(paste0(path, "area_types"))
  8: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  9: parseJSON(txt, bigint_as_char)
  10: parse_con(txt, bigint_as_char)
  11: open(con, "rb")
  12: open.connection(con, "rb")
  
  2. Failure: the dimensions of deprivation decile function are as expected (@test-deprivation.R#12) 
  dim(dep_default) not equal to c(152, 3).
  1/2 mismatches
  [1] 0 - 152 == -152
  
  
  3. Failure: the dimensions of deprivation decile function are as expected (@test-deprivation.R#14) 
  dim(dep_101) not equal to c(326, 3).
  1/2 mismatches
  [1] 0 - 326 == -326
  
  
  4. Failure: bad inputs give bad outputs (@test-metadata.R#7) -------------------
  error$message does not match "IndicatorID\\(s\\) do not exist, use indicators\\(\\) to identify existing indicators".
  Actual value: "Timeout was reached: Resolving timed out after 10000 milliseconds"
  
  
  5. Failure: bad inputs give bad outputs (@test-metadata.R#9) -------------------
  error$message does not match "DomainID\\(s\\) do not exist, use profiles\\(\\) to identify existing domains".
  Actual value: "Timeout was reached: Resolving timed out after 10000 milliseconds"
  
  
  6. Failure: bad inputs give bad outputs (@test-metadata.R#11) ------------------
  error$message does not match "ProfileID\\(s\\) do not exist, use profiles\\(\\) to identify existing profiles".
  Actual value: "Timeout was reached: Resolving timed out after 10010 milliseconds"
  
  
  testthat results ================================================================
  OK: 25 SKIPPED: 0 FAILED: 6
  1. Error: the area_types function works correctly (@test-area_types.R#9) 
  2. Failure: the dimensions of deprivation decile function are as expected (@test-deprivation.R#12) 
  3. Failure: the dimensions of deprivation decile function are as expected (@test-deprivation.R#14) 
  4. Failure: bad inputs give bad outputs (@test-metadata.R#7) 
  5. Failure: bad inputs give bad outputs (@test-metadata.R#9) 
  6. Failure: bad inputs give bad outputs (@test-metadata.R#11) 
  
  Error: testthat unit tests failed
  Execution halted