ess

How can I specify the R version opened by ESS session in emacs? [duplicate]

荒凉一梦 提交于 2020-01-13 16:55:47
问题 This question already has answers here : ESS to call different installations of R (2 answers) Closed 6 years ago . When I want to open an R session in emacs, I use M-x R . However, our server has both R 2.12 in /usr/bin/R and R 2.15 in /usr/local/bin/R. Actually, if I ask whereis R , I get the following: $ whereis R R: /usr/bin/R /usr/local/bin/R /usr/local/bin/R2.15 /usr/local/bin/R2.12 /usr/local/bin/R2.7 /usr/include/R /usr/share/R /usr/share/man/man1/R.1.gz When I try to export "R_HOME=

How to turn off auto replacement in Emacs Speaks Statistics for R

房东的猫 提交于 2020-01-12 07:40:00
问题 In Emacs Speaks Statistics for R , how can the auto replacement of _ with <- be turned off? 回答1: To stop this smart behaviour, add (ess-toggle-underscore nil) to your .emacs after ess-site has been loaded. 回答2: What rcs said. But pressing _ again will turn the "<-" into "_" when you need it. So, when you need an underscore, just press it twice. 来源: https://stackoverflow.com/questions/1816238/how-to-turn-off-auto-replacement-in-emacs-speaks-statistics-for-r

How to turn off auto replacement in Emacs Speaks Statistics for R

こ雲淡風輕ζ 提交于 2020-01-12 07:39:12
问题 In Emacs Speaks Statistics for R , how can the auto replacement of _ with <- be turned off? 回答1: To stop this smart behaviour, add (ess-toggle-underscore nil) to your .emacs after ess-site has been loaded. 回答2: What rcs said. But pressing _ again will turn the "<-" into "_" when you need it. So, when you need an underscore, just press it twice. 来源: https://stackoverflow.com/questions/1816238/how-to-turn-off-auto-replacement-in-emacs-speaks-statistics-for-r

Useful keyboard shortcuts and tips for ESS/R

自古美人都是妖i 提交于 2019-12-31 07:58:27
问题 I would like to ask regular ESS/R users what key bindings do they use frequently and tips on using ESS/R. 回答1: I have set several shortcuts in my .emacs file. The most useful are: C-tab to switch between the R command line and the file (similar to josh answer, but much faster): (global-set-key [C-tab] 'other-window) Control and up/down arrow keys to search history with matching what you've already typed: (define-key comint-mode-map [C-up] 'comint-previous-matching-input-from-input) (define

Useful keyboard shortcuts and tips for ESS/R

别等时光非礼了梦想. 提交于 2019-12-31 07:58:26
问题 I would like to ask regular ESS/R users what key bindings do they use frequently and tips on using ESS/R. 回答1: I have set several shortcuts in my .emacs file. The most useful are: C-tab to switch between the R command line and the file (similar to josh answer, but much faster): (global-set-key [C-tab] 'other-window) Control and up/down arrow keys to search history with matching what you've already typed: (define-key comint-mode-map [C-up] 'comint-previous-matching-input-from-input) (define

Refactoring R code using ESS/R

社会主义新天地 提交于 2019-12-21 02:28:33
问题 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. 回答1: 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) Q (enter dired-to-query

Refactoring R code using ESS/R

强颜欢笑 提交于 2019-12-21 02:28:10
问题 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. 回答1: 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) Q (enter dired-to-query

ESS/AucTeX/Sweave integration

青春壹個敷衍的年華 提交于 2019-12-20 23:27:12
问题 I'm using GNU/Linux distro (Arch, if that's relevant), Emacs v23.2.1, ESS v5.9 and AucTeX v11.86. I want to setup AucTeX to recognize .Rnw files, so I can run LaTeX on .Rnw files with C-c C-c and get .dvi file automatically. I reckon it's quite manageable by editing .emacs file, but I still haven't got a firm grasp on Elisp . Yet another problem is quite annoying - somehow, LaTeX is not recognizing \usepackage{Sweave} in preambule, so I actually need to copy Sweave.sty file (in my case

How can I launch an x-window from emacs ess when running R on a server?

元气小坏坏 提交于 2019-12-20 16:41:33
问题 I am using emacs-snapshot with the ssh.el package, following the instructions from the ess manual. There are a few ways to open an R session, but this is how I do it: open emacs C-x C-f /server:dir/file.R this puts me in ESS [S] mode Type 'plot(1)' C-c C-n to run emacs asks for starting directory, and I choose the /server:dir/ I would like for a figure to pop up but it wont. This also doesn't work when using ess-remote in shell or tramp mode, but it does work if I set the starting directory

How can I background the R process in ESS / Emacs?

◇◆丶佛笑我妖孽 提交于 2019-12-20 08:59:21
问题 I often run long R scripts when I start my R environment. I would like to be able to load / run the R script in Emacs / ESS and continue other work in another buffer. When I press C-g or C-c C-c the process is interrupted, and I must restart the script. What is the best way to background the R process in ESS / Emacs? EDIT: Thank you for your answers and comments, but none of them address the fact that Emacs freezes when you load / run a large script and you can't change buffer. I suppose my