Running ‘testthat.R’ [1s/22s]
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#8) -------
  Timeout was reached
  1: expect_equal(nrow(area_types("County")), 0) at testthat/test-area_types.R:8
  2: compare(object, expected, ...)
  3: nrow(area_types("County"))
  4: area_types("County")
  5: paste0(path, "area_types/parent_area_types") %>% gather_array %>% spread_values(Id = jstring("Id"), 
         Name = jstring("Name"), Short = jstring("Short")) %>% enter_object("ParentAreaTypes") %>% 
         gather_array %>% spread_values(ParentAreaID = jstring("Id"), ParentAreaName = jstring("Name")) %>% 
         select(Id, ParentAreaID, ParentAreaName) %>% rename(AreaTypeID = Id, ParentAreaTypeID = ParentAreaID, 
         ParentAreaTypeName = ParentAreaName) %>% mutate(AreaTypeID = as.numeric(AreaTypeID), 
         ParentAreaTypeID = as.numeric(ParentAreaTypeID)) %>% data.frame()
  6: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  7: eval(quote(`_fseq`(`_lhs`)), env, env)
  8: eval(quote(`_fseq`(`_lhs`)), env, env)
  9: `_fseq`(`_lhs`)
  10: freduce(value, `_function_list`)
  11: function_list[[i]](value)
  12: gather_array(.)
  13: as.tbl_json(x)
  14: as.tbl_json.character(x)
  15: lapply(x, fromJSON, simplifyVector = FALSE)
  16: FUN(X[[i]], ...)
  17: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  18: parseJSON(txt, bigint_as_char)
  19: parse_con(txt, bigint_as_char)
  20: open(con, "rb")
  21: open.connection(con, "rb")
  
  Error in open.connection(con, "rb") : Timeout was reached
  Calls: test_check ... fromJSON_string -> parseJSON -> parse_con -> open -> open.connection
  testthat results ================================================================
  OK: 1 SKIPPED: 0 FAILED: 1
  1. Error: the area_types function works correctly (@test-area_types.R#8) 
  
  Error: testthat unit tests failed
  Execution halted