Denounce a user by adding them to the VOUCHED file with a minus prefix.
Source:R/vouch.R
denounce.RdThis removes any existing entry for the user and adds them as denounced. An optional reason can be provided which will be added after the username.
Arguments
- username
Username to denounce (supports
platform:userformat). Missing values (NA) are dropped with an informational message.- write
Write the file in-place (default: output to stdout).
- reason
Optional reason for denouncement.
- default_platform
Assumed platform for entries without explicit platform.
- vouched_file
Path to vouched contributors file (default:
VOUCHED.tdor.github/VOUCHED.td).
Attribution
Documentation for this function is copied nearly verbatim from vouch and is owned by Mitchell Hashimoto.
Examples
if (FALSE) { # \dontrun{
# Preview new file contents (default)
denounce("badactor")
# Denounce with a reason
denounce("badactor", reason = "Submitted AI slop")
# Write the file in-place
denounce("badactor", write = TRUE)
# Denounce with platform prefix
denounce("github:badactor", write = TRUE)
} # }