不知道大家有没有用ess-rdired 这个object browser
就是M-x ess-rdired 就可以,自带的
是挺好的,可以想matlab rstudio这写IDE一样显示变量,类型 和 size
贴上官方的一段文档
Ess-rdired provides a dired-like buffer for viewing, editing andplotting objects in your current R session. If you are used to usingthe dired (directory editor) facility in Emacs, this mode gives yousimilar functionality for R objects.
To get started, first make sure you can load ess-rdired. Add thefollowing to your .emacs and then restart emacs.
(autoload 'ess-rdired "ess-rdired" "View *R* objects in a dired-like buffer." t)Start an R session with `M-x R' and then store a few variables, suchas:
s <- sin(seq(from=0, to=8*pi, length=100)) x <- c(1, 4, 9) y <- rnorm(20) z <- TRUEThen use `M-x ess-rdired' to create a buffer listing the objects inyour current environment and display it in a new window:
mode length s numeric 100 x numeric 3 y numeric 20 z logical 1Type C-h m or ? to get a list of the keybindings for this mode.For example, with your point on the line of a variable, p will plotthe object, v will view it, and d will mark the object for deletion(x will actually perform the deletion).
我遇到的问题就是使用 p,v这写快捷键不能plot, view这个变量。。
提示: no ESS process is associated with this buffer now..