Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(namer)
  > 
  > test_check("namer")
  -- 1. Error: get_chunk_info works (@test-get_chunk_info.R#6)  ------------------
  `map_df()` requires dplyr
  Backtrace:
   1. namer:::get_chunk_info(lines)
   2. purrr::map_df(chunk_header_indices, digest_chunk_header, lines)
  
  -- 2. Error: renaming works (@test-name_chunks.R#20)  --------------------------
  `map_df()` requires dplyr
  Backtrace:
   1. namer::name_chunks(temp_file_path)
   2. namer:::get_chunk_info(lines)
   3. purrr::map_df(chunk_header_indices, digest_chunk_header, lines)
  
  -- 3. Error: renaming works for a dir (@test-name_dir_chunks.R#10)  ------------
  `map_df()` requires dplyr
  Backtrace:
   1. namer::name_dir_chunks(file.path(temp_dir, "examples"))
   2. purrr::walk(rmds, chatty_name_chunks)
   3. purrr::map(.x, .f, ...)
   4. namer:::.f(.x[[i]], ...)
   5. namer::name_chunks(path)
   6. namer:::get_chunk_info(lines)
   7. purrr::map_df(chunk_header_indices, digest_chunk_header, lines)
  
  -- 4. Error: parse_chunk_header works (@test-parse_chunk_header.R#4)  ----------
  `map_df()` requires dplyr
  Backtrace:
   1. purrr::map_df(...)
  
  -- 5. Error: unname_all_chunks works in case is.null(chunk_name_prefix) == TRUE 
  `map_df()` requires dplyr
  Backtrace:
   1. namer::unname_all_chunks(temp_file_path)
   2. namer:::get_chunk_info(lines)
   3. purrr::map_df(chunk_header_indices, digest_chunk_header, lines)
  
  -- 6. Error: unname_all_chunks works in case is.null(chunk_name_prefix) == FALSE
  `map_df()` requires dplyr
  Backtrace:
   1. namer::unname_all_chunks(temp_file_path, chunk_name_prefix = "example4")
   2. namer:::get_chunk_info(lines)
   3. purrr::map_df(chunk_header_indices, digest_chunk_header, lines)
  
  -- 7. Error: unname_all_chunks works in case chunk_name_prefix == 'setup'  (@tes
  `map_df()` requires dplyr
  Backtrace:
   1. namer::unname_all_chunks(temp_file_path, chunk_name_prefix = "setup")
   2. namer:::get_chunk_info(lines)
   3. purrr::map_df(chunk_header_indices, digest_chunk_header, lines)
  
  == testthat results  ===========================================================
  [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: get_chunk_info works (@test-get_chunk_info.R#6) 
  2. Error: renaming works (@test-name_chunks.R#20) 
  3. Error: renaming works for a dir (@test-name_dir_chunks.R#10) 
  4. Error: parse_chunk_header works (@test-parse_chunk_header.R#4) 
  5. Error: unname_all_chunks works in case is.null(chunk_name_prefix) == TRUE (@test-unname_all_chunks.R#16) 
  6. Error: unname_all_chunks works in case is.null(chunk_name_prefix) == FALSE (@test-unname_all_chunks.R#47) 
  7. Error: unname_all_chunks works in case chunk_name_prefix == 'setup'  (@test-unname_all_chunks.R#79) 
  
  Error: testthat unit tests failed
  Execution halted