4

Is ESS' R-mode also slower for you than just plain R? Mostly the text gets sent really slowly to the other buffer.

Is this normal or is there something wrong with my setup?

As suggested:

sessionInfo()

R version 2.15.1 (2012-06-22)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_2.15.1 tools_2.15.1   

My custom .el file for R: http://pastebin.com/WrUxBAyG

Hopefully someone has a clue what might be off.

EDIT: I actually tried disabling all those R packages, and they don't seem to be the problem.

PascalVKooten
  • 20,643
  • 17
  • 103
  • 160

2 Answers2

9
(setq ess-eval-visibly-p nil)

Solves the issue of slow blocks of code as mentioned here

PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
  • I agree that you should accept your own answer in this case, although I hear there are sometimes time limits on when you can do so. – IRTFM Dec 08 '12 at 18:43
2

Depends on what you're doing. If you're doing a long running command with C-c C-c or something it can appear sow.

Sometimes the text wont be written to the R buffer until after the process is done.

For simple commands it shouldn't be noticeably slower though. Googling will show you a bunch of other folks dealing with similar issues. But without more information we can't tell you much else!

-- edited so the accept can be changed.

Justin
  • 42,475
  • 9
  • 93
  • 111
  • Everytime I sent a piece of code to the buffer, it blinks at every sentence sent. Is that more information? And now that you remind me, the plot window does show up before text had been sent to the buffer. – PascalVKooten Dec 08 '12 at 17:26
  • I don't think I can debug since my knowledge of ESS is very shallow. However, posting your `sessionInfo()` and your `.emacs` file may help others out. If you can create a snippet of code that will recreate the delay you're seeing, that often helps too. – Justin Dec 08 '12 at 17:28
  • Any code that I sent has the delay. It is really apparent when you try to execute a function, since then it is being slow on all the lines of the code. – PascalVKooten Dec 08 '12 at 17:34
  • your "google it" did the trick -_-. ESS is echoing the code (for readability or whatever?), this is really slow. Using the code in my answer solves this. – PascalVKooten Dec 08 '12 at 17:40
  • I'd go ahead and accept your own answer since its correct and mine just pointed the way! For science ya know. – Justin Dec 08 '12 at 17:55
  • As you wish. Though I suppose that I can't accept it until after some days when it's possible to accept one's own answer. – PascalVKooten Dec 08 '12 at 19:17