spacemacs/contrib/lang/ess
Jean-Christophe Petkovich 4a9083a109 Fix package loading in lang/ess
Originally `load-ess-on-demand` used `use-package` for the purposes of
actually loading `ess-site` and related elisp for dealing with R. But
since `use-package` doesn't return true or false when a package is
actually successfully loaded anymore, and the semantics of how it will
work aren't precisely clear, it makes sense to use `require` here
instead.

    (defun load-ess-on-demand ()
      (interactive)
      (-all? '---truthy? (list
                          (require 'ess-site)
                          (require 'ess-R-object-popup)
                          (require 'ess-R-data-view))))

All the normal hooks setup by `use-package` will work as normal. I
actually don't see a reason we should use `use-package` instead of
`require` in this specific instance. Since `use-package` often defers
loading packages, it's arguably clearer to use `require` in this
particular instance.
2015-05-06 22:27:38 -04:00
..
img Move layer images into img directories 2014-12-24 01:03:49 -05:00
config.el Refactor one more time the auto-completin macros 2015-04-09 00:03:51 -04:00
packages.el Fix package loading in lang/ess 2015-05-06 22:27:38 -04:00
README.md ess: make smart equals and underscore optional 2015-03-02 18:36:37 -05:00

R (ESS) contribution layer for Spacemacs

logo

Table of Contents

Install

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(ess))

Important: In order to speed up the boot time of Spacemacs, ESS must be loaded manually via the key binding: SPC e s s

Key Bindings

Inferior REPL process

Start an R inferior REPL process with SPC m s i.

Send code to inferior process 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 t | send thing at point (function) and keep code buffer focused SPC m s 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

Helpers

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

ess-smart-equals is enabled by default. In order to disable it, set in your ~/.spacemacs

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