I would like to know if it is possible to refactor R code in ESS. Using search and replace in Emacs does not seem to be a good alternative to it.
相关问题
- Symbol's function definition is void: declare-
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
In Emacs you can do a search replace with
M-%
and then!
will replace every instance in the current buffer.If that isn't want you mean, can you explain (edit your Q or comment here) what Statet does and what exactly you'd like to do in Emacs + ESS?
ESS itself does not provide any facilities for refactoring. Instead you can use emacs functionality.
Here is an example of how to replace all words starting with "xxx" and ending with "yyy" with "zzzzzz" in all your open R files in your project directory.
C-x d (enter dired)
% m r$ (mark all files ending in R or r)
dired-to-query-replace-regexp
)Here is a complete tutorial of how to search-replace in multiple files. and also how to save all modified buffers with
ibuffer
.