#+TITLE: :lang ess

This module adds support for various statistics languages, including R, S-Plus,
SAS, Julia and Stata.

* Table of Contents :TOC:
- [[#prequisites][Prequisites]]
- [[#appendix][Appendix]]
  - [[#keybindings][Keybindings]]

* Prequisites
This module has several optional dependencies:

+ [[https://github.com/jimhester/lintr][lintr]]: Enables R linting.
+ [[https://github.com/REditorSupport/languageserver][languageserver]]: Enables LSP support in an R buffer (with =+lsp= flag).
 
* Appendix
** Keybindings
*** :map ess-doc-map
| key | command                    |
|-----+----------------------------|
| "h" | ess-display-help-on-object |
| "p" | ess-R-dv-pprint            |
| "t" | ess-R-dv-ctable            |
*** :map ess-mode-map
| key          | command               |
|--------------+-----------------------|
| "<s-return>" | ess-eval-line         |
| "<up>"       | comint-next-input     |
| "<down>"     | comint-previous-input |
**** :localleader
| state | key         | command                                           |
|-------+-------------+---------------------------------------------------|
| :nv   | ","         | ess-eval-region-or-function-or-paragraph-and-step |
| :n    | "'"         | R                                                 |
| :n    | "<tab>"     | ess-switch-to-inferior-or-script-buffer           |
| :n    | "<backtab>" | ess-switch-process                                |
| :n    | "B"         | ess-eval-buffer-and-go                            |
| :n    | "b"         | ess-eval-buffer                                   |
| :nv   | "d"         | ess-eval-region-or-line-and-step                  |
| :n    | "D"         | ess-eval-function-or-paragraph-and-step           |
| :n    | "L"         | ess-eval-line-and-go                              |
| :n    | "l"         | ess-eval-line                                     |
| :nv   | "R"         | ess-eval-region-and-go                            |
| :nv   | "r"         | ess-eval-region                                   |
| :n    | "F"         | ess-eval-function-and-go                          |
| :n    | "f"         | ess-eval-function                                 |
| :n    | "h"         | ess-doc-map                                       |
| :n    | "x"         | ess-extra-map                                     |
| :n    | "p"         | ess-r-package-dev-map                             |
| :n    | "v"         | ess-dev-map                                       |
| :n    | "cC"        | ess-eval-chunk-and-go                             |
| :n    | "cc"        | ess-eval-chunk                                    |
| :n    | "cd"        | ess-eval-chunk-and-step                           |
| :n    | "cm"        | ess-noweb-mark-chunk                              |
| :n    | "cp"        | ess-noweb-previous-chunk                          |
| :n    | "cn"        | ess-noweb-next-chunk                              |
