Running 'testthat.R' [21s/73s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(fingertipsR)
  > 
  > test_check("fingertipsR")
  -- 1. Error: (unknown) (@test-deprivation.R#6)  --------------------------------
  Unknown column `Indicator Name` 
  1: deprivation_decile() at testthat/test-deprivation.R:6
  2: fingertips_data(IndicatorID = IndicatorID, AreaTypeID = AreaTypeID, ProfileID = ProfileID, 
         path = path) %>% filter(AreaType == AreaFilter & Timeperiod == Year) %>% select(AreaCode, 
         Value) %>% rename(IMDscore = Value) %>% mutate(decile = as.integer(11 - ntile(IMDscore, 
         10)))
  3: eval(lhs, parent, parent)
  4: eval(lhs, parent, parent)
  5: fingertips_data(IndicatorID = IndicatorID, AreaTypeID = AreaTypeID, ProfileID = ProfileID, 
         path = path)
  6: retrieve_indicator(IndicatorIDs = IndicatorIDs, ProfileIDs = ProfileIDs, ChildAreaTypeIDs = ChildAreaTypeIDs, 
         ParentAreaTypeIDs = ParentAreaTypeIDs, path = path)
  7: by(fd, list(fd$IndicatorIDs, fd$ProfileIDs, fd$ChildAreaTypeIDs, fd$ParentAreaTypeIDs, 
         fd$profileID_bit), get_data)
  8: by.data.frame(fd, list(fd$IndicatorIDs, fd$ProfileIDs, fd$ChildAreaTypeIDs, fd$ParentAreaTypeIDs, 
         fd$profileID_bit), get_data)
  9: structure(eval(substitute(tapply(seq_len(nd), IND, FUNx, simplify = simplify)), data), 
         call = match.call(), class = "by")
  10: eval(substitute(tapply(seq_len(nd), IND, FUNx, simplify = simplify)), data)
  ...
  26: manip_at(.tbl, .vars, .funs, enquo(.funs), caller_env(), .include_group_vars = TRUE, 
         ...)
  27: tbl_at_syms(.tbl, .vars, .include_group_vars = .include_group_vars)
  28: tbl_at_vars(tbl, vars, .include_group_vars = .include_group_vars)
  29: tidyselect::vars_select(tibble_vars, !!!vars)
  30: vars_select_eval(.vars, quos)
  31: map_if(ind_list, is_character, match_strings, names = TRUE)
  32: map(.x[sel], .f, ...)
  33: .f(.x[[i]], ...)
  34: bad_unknown_vars(vars, unknown)
  35: abort(glue("Unknown { thing } { fmt_args(unknown) } "))
  
  On 07/07/2019 Fingertips consisted of 42 profiles, made up of 3370 indicators and 1525 distinct indicators.== testthat results  ===========================================================
  OK: 62 SKIPPED: 0 WARNINGS: 1 FAILED: 1
  1. Error: (unknown) (@test-deprivation.R#6) 
  
  Error: testthat unit tests failed
  Execution halted