ESS Reference Card for S and R [Emacs Speaks Statistics]

ESS
[Emacs Speaks Statistics]
Reference Card for S and R
updated for ESS 12.09-1
October 16, 2014
Interacting with the process
For use in a process buffers (inferior-ess-mode):
hreti
C-c hreti
htabi
C-c
C-g
C-a
C-c
C-c
C-c
C-c
C-c
/ C-e
C-u
C-w
C-r
C-o
Send a command
Copy old input
Complete object or file name.
Also bound to M-htabi, M-C-i.
Break
interrupt Emacs’ waiting for S
Beginning / End of command
Delete this command
Delete last word
Top of last output
Delete last output
Command history (part of Menu ‘In/Out’)
M-p
Previous command
M-n
Next
command
C-c C-l
List command history (& choose!)
C-c M-r
Previous similar command
C-c M-s
Next
similar command
Others
C-c C-v
C-c M-l
C-c C-x
C-c C-s
C-c C-q
C-c C-z
Help for object
Load source file
List objects
Display search list
Quit from S
Switch to most recent script buffer
Inside ESS Transcripts (I + O)
Inside (*.Rout files):
hreti
C-c C-n
C-c C-p
C-c C-w
Send and Move
Next
prompt
Previous prompt
Clean Region (7→ input only)
Sweave
M-n
M-n
M-n
M-n
s
l
p
P
Sweave the file
Run latex
Postscript file
PDF file
Editing source files
For use in ess-mode edit buffers, (*.R files):
htabi
M-htabi
M-C-/
M-C-q
M-C-a
M-C-e
M-C-h
C-u C-u C-y
Indent this line
Complete filename/object
Indent region
Indent this expression (use at ‘{’)
Beginning of function
End of function
Mark this function
Yank striped commands
Evaluation commands (Prefix C-u: in/visibly )
M-C-x
Evaluate region or function or para
C-c C-c
Evaluate region or para. or function & step
C-hreti
Evaluate region or line & step
C-c C-l
Load this buffer’s source file
C-c C-j
Evaluate this line
C-c M-j
Evaluate this line and go
C-c C-f
Evaluate this function
C-c M-f
Evaluate this function and go
C-c C-p
Evaluate this paragraph and step
C-c C-r
Evaluate this region
C-c M-r
Evaluate this region and go
C-c C-b
Evaluate this buffer
C-c M-b
Evaluate this buffer and go
Others
C-c C-v
C-c C-z
Help for object
Switch to process buffer
General Commands
ess-doc-map (C-c C-d):
C-a,
C-d,
C-e,
C-i,
C-v,
C-o,
C-w,
a
d
e
i
v
o
w
Apropos
Doc on object
Describe object at point (C-e or e to cycle)
Index
Vignettes
Demos
Web search (dialect dependent)
ess-extra-map (C-c C-e):
C-d,
C-e,
C-i,
C-l,
C-s,
C-t,
d
e
i
l
s
t
Dump object into edit buffer
Evaluate expression (C-u in temp buf)
Install package (in R) or library
Load package (in R) or library
Set indentation style
Build tags for directory
Reading help files
For use in ‘*help[R](. . .)*’ help buffers:
SPC
b, DEL
n
p
s
s e
l
r
q
k
x
Next page
Previous page (‘back’)
Next section
Previous section
Skip (‘jump’) to a named section
e.g., skip to “Examples:”
Evaluate one ‘Example’ line
Evaluate current region
Quit window
Kill this buffer
Kill this buffer and return (‘exit)
h
?
a
i
v
w
Help on another object
Help for this mode
Display apropos
Display index
Display vignettes
Display this help in web browser
ESS tracebug
Commands in ess-dev-map (C-c C-t):
?
C-b, b
C-k, k
C-n, n
C-p, p
‘
~
C-e, e
C-d, d
C-u, u
C-w, w
0..9, q
Show key help
Set BP (repeat to cycle)
Kill BP
Goto next BP
Goto previous BP
Show R Traceback (also on C-c ‘
Show R call stack (also on C-c
Toggle error action (cycle)
Flag for debugging
Un-flag debugged objects
Watch window
Recover commands
Commands in ess-debug-mode-map
(active during debugging):
M-C
M-N
M-Q
M-U
C-M-S-c
C-M-S-n
Continue
Next line
Quit
Up frame
Continue Multiple
Next Multiple
Others
C-x ‘, M-g n
M-g p
‘next-error’ (emacs)
‘previous-error’(emacs)
ESS developer
Evaluate your code into
ess-dev-map: C-c C-t):
C-t, t
C-a, a
C-r, r
the
package
Toggle developer on/off
Add package to the dev list
Remove package from dev list
(in