R code refactoring using ESS / R

I would like to know if it is possible to reorganize the R code into ESS. Using search and replace in Emacs doesn't seem to be a good alternative to it.

+5
source share
2 answers

ESS itself does not provide any refactoring options. 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 of your open R files in the project directory.

  • C-x d (type dired)

  • % m r$ (check all files ending with R or r)

  • Q(enter dired-to-query-replace-regexp)
  • type xxx.*zzzand zzzzzz when requesting replacement patterns.
  • , y, n

- - . ibuffer.

+6

Emacs M-%, ! .

, ( Q ), Statet Emacs + ESS?

+2

All Articles