# R (ESS) contribution layer for Spacemacs ![logo](https://raw.githubusercontent.com/syl20bnr/spacemacs/master/contrib/lang/ess/r.png) ## Install To use this contribution add it to your `~/.spacemacs` ```elisp (setq-default dotspacemacs-configuration-layers '(ess) "List of contribution to load." ) ``` ## Key Bindings **Important**: In order to speed up the boot time of `Spacemacs`, `ESS` must be loaded manually via the key binding: e s s ### Inferior REPL process Start an `R` inferior REPL process with ` m i`. Send code to inferior process commands: Key Binding | Description ------------------|------------------------------------------------------------ ` m b` | send buffer and keep code buffer focused ` m B` | send buffer and switch to REPL in insert mode ` m d` | send region or line and step (debug) ` m D` | send function or paragraph and step (debug) ` m l` | send line and keep code buffer focused ` m L` | send line and switch to REPL in insert mode ` m r` | send region and keep code buffer focused ` m R` | send region and switch to REPL in insert mode ` m t` | send thing at point (function) and keep code buffer focused ` m T` | send thing at point (function) and switch to REPL in insert mode `CTRL+j` | next item in REPL history `CTRL+k` | previous item in REPL history ### Other R commands Key Binding | Description ------------------|------------------------------------------------------------ ` m p` | object introspection popup [ess-R-object-popup][ess-R-object-popup] ` m v p` | view data under point using [ess-R-data-view][ess-R-data-view] ` m v t` | view table using [ess-R-data-view][ess-R-data-view]