tests/testthat/helper-file-exists.R

exist_file <- tempfile()
file.create(exist_file)

bad_file <- tempfile()

exist_file_list <- purrr::map(1:3, ~{tempfile()}) %T>%
  purrr::map(file.create)

exist_file_vector <- unlist(exist_file_list)
snystrom/dotargs documentation built on Oct. 18, 2020, 8:39 a.m.