R/AutoSpellCheck.R

Defines functions AutoSpellCheck

Documented in AutoSpellCheck

AutoSpellCheck =
    function(file) {
      if (interactive()) {
        if (require(BrailleR)) {
          ChangeList = read.csv(paste0(getOption("BrailleR.Folder"),
                                       "AutoSpellList.csv"))
          for (i in 1:length(ChangeList$OldString)) {
            FindReplace(file, ChangeList$OldString[i], ChangeList$NewString[i])
          }
        }
      } else {
        .InteractiveOnly()
      }
      return(invisible(NULL))
    }

Try the BrailleR package in your browser

Any scripts or data that you put into this service are public.

BrailleR documentation built on July 26, 2023, 5:46 p.m.