Skip to contents

Convenience wrapper around find_code that searches for common data-export function calls (write_xlsx, saveRDS, write.csv, etc.) across a directory tree.

Usage

find_write_calls(path, include_comments = FALSE, workers = NULL)

Arguments

path

Character. Root directory to search.

include_comments

Logical. Passed through to find_code. Defaults to FALSE.

workers

Integer number of parallel workers to use when future/furrr are installed. Defaults to NULL, which caps at available cores minus one. Falls back to sequential search when future/furrr are not installed.

Value

A tibble of matches (see find_code) with an additional pattern column recording which write function matched.

Examples

if (FALSE) { # \dontrun{
find_write_calls(here::here("analysis"))
} # }