This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/lang/ess/README.md

51 lines
1.7 KiB
Markdown
Raw Normal View History

2014-11-11 03:27:06 +00:00
# R (ESS) contribution layer for Spacemacs
2014-12-12 00:55:44 +00:00
![logo](r.jpg)
2014-12-10 05:00:09 +00:00
2014-11-11 03:27:06 +00:00
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
2014-12-10 04:50:48 +00:00
(setq-default dotspacemacs-configuration-layers '(ess)
2014-11-11 03:27:06 +00:00
"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:
<SPC> e s s
### Inferior REPL process
Start an `R` inferior REPL process with `<SPC> m i`.
Send code to inferior process commands:
Key Binding | Description
------------------|------------------------------------------------------------
`<SPC> m b` | send buffer and keep code buffer focused
`<SPC> m B` | send buffer and switch to REPL in insert mode
`<SPC> m d` | send region or line and step (debug)
`<SPC> m D` | send function or paragraph and step (debug)
`<SPC> m l` | send line and keep code buffer focused
`<SPC> m L` | send line and switch to REPL in insert mode
`<SPC> m r` | send region and keep code buffer focused
`<SPC> m R` | send region and switch to REPL in insert mode
`<SPC> m t` | send thing at point (function) and keep code buffer focused
`<SPC> m T` | send thing at point (function) and switch to REPL in insert mode
2014-11-11 03:27:06 +00:00
`CTRL+j` | next item in REPL history
`CTRL+k` | previous item in REPL history
### Other R commands
Key Binding | Description
------------------|------------------------------------------------------------
`<SPC> m p` | object introspection popup [ess-R-object-popup][ess-R-object-popup]
`<SPC> m v p` | view data under point using [ess-R-data-view][ess-R-data-view]
`<SPC> m v t` | view table using [ess-R-data-view][ess-R-data-view]