1
2#' Interact with RStudio's Dictionaries
3#'
4#' Interact with the [hunspell](https://hunspell.github.io/) dictionaries
5#' used by RStudio for spell checking.
6#'
7#' `dictionariesPath()` gives a path to the dictionaries installed and
8#' distributed with RStudio.
9#'
10#' `userDictionariesPath()` gives the path where users can provide their
11#' own custom `hunspell` dictionaries. See:
12#'
13#' \url{https://support.rstudio.com/hc/en-us/articles/200551916-Spelling-Dictionaries}
14#'
15#' for more information.
16#'
17#' @note The `dictionariesPath()` and `userDictionariesPath()` functions were
18#'   introduced with RStudio 1.2.1202.
19#'
20#' @name dictionaries
21NULL
22
23#' @name dictionaries
24#' @export
25dictionariesPath <- function() {
26  callFun("dictionariesPath")
27}
28
29#' @name dictionaries
30#' @export
31userDictionariesPath <- function() {
32  callFun("userDictionariesPath")
33}
34