Textlintr is package that wrapper natural language lint tools textlint.js
for R. You can combine rules freely to check for misspellings and so on.
You can install the development version of textlintr from GitHub with:
install.packages(
"textlintr",
repos = "https://uribo.r-universe.dev")
textlint.js
and some rules)
init_textlintr(rules = c("common-misspellings", "prh"))
rule_sets()
.textlintrc
textlint("target.Rmd")
add_rule()
library(textlintr)
init_textlintr(rules = c("common-misspellings"))
lint_target <-
system.file("sample.md", package = "textlintr")
textlint(lint_target)
The environment for collaboration should be friendly, inclusive, respectful, and safe for everyone, so all participants must obey this repository’s code of conduct.