Checks if files contain privacy sensitive data and moves them to a 'vault folder' if this is the case.

privacy_check(
  path = getwd(),
  vault = paste0(path, "/vault"),
  log_file = paste0(vault, "/_privacy_log.txt"),
  suspicious_cols = "(zip.*code|postcode|bsn|geboortedatum)"
)

Arguments

path

path to check

vault

path to vault

log_file

path to log file where details will be written to

suspicious_cols

regular expression to match suspicious column names