offensive_check_files: Offensive check

Description Usage Arguments Examples

View source: R/check_files.R

Description

Perform a check for offensive works on document files or plain text.

Usage

1
2
3
4
5
offensive_check_files(path, words_add = character(),
  words_ignore = character())

offensive_check_text(text, words_add = character(),
  words_ignore = character())

Arguments

path

path to file or to offensive check

words_add

Character. Words to look for.

words_ignore

Character. Words to ignore.

text

character vector with plain text

Examples

1
2
3
4
# Example files
files <- list.files(system.file("examples", package = "knitr"),
  pattern = "\\.(Rnw|Rmd|html)$", full.names = TRUE)
offensive_check_files(files)

EmilHvitfeldt/offensiveR documentation built on May 6, 2019, 12:23 p.m.