spacemacs/layers/+lang/ess
ISELECT1\naylyn.gaffney 8c3cf7c3ae Remove ess-R-object-popup from ess layer.
As described in issue #9464, this package was removed from melpa for
not having a GPL compatible license and is causing an error every time
spacemacs starts.
2017-10-15 11:08:01 -04:00
..
img
README.org Improve exporting/testing 2017-08-18 20:50:21 +03:00
config.el added ess layer variable ess-disable-underscore-assign 2017-06-16 09:48:56 +02:00
funcs.el ess: move functions to new funcs.el file 2017-04-28 23:02:18 -04:00
packages.el Remove ess-R-object-popup from ess layer. 2017-10-15 11:08:01 -04:00

README.org

ESS (R) layer

/TakeV/spacemacs/media/commit/bec3f8444d0c21b1f4f92ce596492b08fa730da1/layers/+lang/ess/img/r.jpg

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add ess to the existing dotspacemacs-configuration-layers list in this file.

Key Bindings

Inferior REPL process

Send code to inferior process with these commands:

Key Binding Description
SPC m c c send knitr/sweave chunk and keep buffer focused
SPC m c C send knitr/sweave chunk and switch to REPL in insert mode
SPC m c d send knitr/sweave chunk and step to next chunk
SPC m c m mark knitr/sweave chunk around point
SPC m c n next knitr/sweave chunk
SPC m c N previous knitr/sweave chunk
SPC m s b send buffer and keep code buffer focused
SPC m s B send buffer and switch to REPL in insert mode
SPC m s d send region or line and step (debug)
SPC m s D send function or paragraph and step (debug)
SPC m s i start an inferior REPL process
SPC m s l send line and keep code buffer focused
SPC m s L send line and switch to REPL in insert mode
SPC m s r send region and keep code buffer focused
SPC m s R send region and switch to REPL in insert mode
SPC m s f send thing at point (function) and keep code buffer focused
SPC m s F 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

Helpers

Helpers for inspecting objects at point are available in R buffers only.

Key Binding Description
SPC m h d view data under point using [ess-R-data-view][ess-R-data-view]
SPC m h i object introspection popup [ess-R-object-popup][ess-R-object-popup]
SPC m h t view table using [ess-R-data-view][ess-R-data-view]

Options

To turn off the automatic replacement of underscores by <-, set in your ~/.spacemacs:

  (setq-default dotspacemacs-configuration-layers '((ess :variables
                                                         ess-disable-underscore-assign t)))

Alternatively you may enable ess-smart-equals, which also disables replacement of underscores by <-, and additionally replace the equals sign with <- when appropriate:

  (setq-default dotspacemacs-configuration-layers '((ess :variables
                                                         ess-enable-smart-equals t)))