Skip to contents
  1. It goes through the source files (.R/.qmd etc.),

  2. It identifies data files (.csv, .xlsx) read or written

  3. Search on the system if these files exist.

Usage

check_referenced_files(path = ".", quiet = FALSE)

Arguments

path

a directory to search for

quiet

Whether it should print messages?

Value

A logical

Details

Still WIP, so you can add code for false positive as needed.

To find genuine referenced files, we exclude different paths

  1. Those created with fs::path() or file.path() or glue::glue()

  2. Those that are checked for fs::file_exists(), file.exists()

  3. Deleted with fs::file_delete(), unlink()