Running ‘testthat.R’ [29s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fingertipscharts)
  > test_check("fingertipscharts")
  ── 1. Error: (unknown) (@test-examples.R#9)  ───────────────────────────────────
  Unknown column `Indicator Name` 
  1: fingertips_data(c(90362, 90366)) %>% group_by(IndicatorID) %>% filter(Timeperiod == 
         "2014 - 16", Sex == "Female", AreaType %in% c("County & UA", "England"), Age == 
         "All ages") %>% ungroup() %>% select(IndicatorID, AreaName, Value) %>% mutate(IndicatorID = paste0("x", 
         IndicatorID)) %>% spread(IndicatorID, Value) at testthat/test-examples.R:9
  2: eval(lhs, parent, parent)
  3: eval(lhs, parent, parent)
  4: fingertips_data(c(90362, 90366))
  5: retrieve_indicator(IndicatorIDs = IndicatorIDs, ChildAreaTypeIDs = ChildAreaTypeIDs, 
         ParentAreaTypeIDs = ParentAreaTypeIDs, path = path)
  6: by(fd, list(fd$IndicatorIDs, fd$ProfileIDs, fd$ChildAreaTypeIDs, fd$ParentAreaTypeIDs, 
         fd$profileID_bit), get_data)
  7: by.data.frame(fd, list(fd$IndicatorIDs, fd$ProfileIDs, fd$ChildAreaTypeIDs, fd$ParentAreaTypeIDs, 
         fd$profileID_bit), get_data)
  8: structure(eval(substitute(tapply(seq_len(nd), IND, FUNx, simplify = simplify)), data), 
         call = match.call(), class = "by")
  9: eval(substitute(tapply(seq_len(nd), IND, FUNx, simplify = simplify)), data)
  10: eval(substitute(tapply(seq_len(nd), IND, FUNx, simplify = simplify)), data)
  ...
  25: manip_at(.tbl, .vars, .funs, enquo(.funs), caller_env(), .include_group_vars = TRUE, 
         ...)
  26: tbl_at_syms(.tbl, .vars, .include_group_vars = .include_group_vars)
  27: tbl_at_vars(tbl, vars, .include_group_vars = .include_group_vars)
  28: tidyselect::vars_select(tibble_vars, !!!vars)
  29: vars_select_eval(.vars, quos)
  30: map_if(ind_list, is_character, match_strings, names = TRUE)
  31: map(.x[sel], .f, ...)
  32: .f(.x[[i]], ...)
  33: bad_unknown_vars(vars, unknown)
  34: abort(glue("Unknown { thing } { fmt_args(unknown) } "))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 9 SKIPPED: 25 WARNINGS: 11 FAILED: 1
  1. Error: (unknown) (@test-examples.R#9) 
  
  Error: testthat unit tests failed
  Execution halted