Skip to contents

Looks for each name (case-insensitive, whole words) in file and folder names, in the text of CSV / JSON / Markdown / text / HTML / YAML / SQL / R / Python / Quarto files, and in every part of xlsx, docx and other zip-based files (in the XML and, for a docx, in the paragraph text with the tags removed; embedded images and fonts are skipped). PDFs, images and other binary files are listed as not scanned (the Python scanner, scripts/check_run_privacy.py, also reads PDF text). Hits are reported by the position of the name in names, never by the name, so the result can be shared.

Usage

check_run_privacy(dir, names)

Arguments

dir

Output folder to scan.

names

Real site names, or the path of a text file with one per line (lines starting with # are skipped).

Value

A list: hits (data frame with file, name_number, where) and not_scanned (file names).