Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs ESS evaluating slower than normal R

Tags:

emacs

r

ess

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.

like image 535
PascalVKooten Avatar asked Dec 21 '22 12:12

PascalVKooten


2 Answers

(setq ess-eval-visibly-p nil)

Solves the issue of slow blocks of code as mentioned here

like image 176
PascalVKooten Avatar answered Dec 27 '22 11:12

PascalVKooten


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.

like image 37
Justin Avatar answered Dec 27 '22 10:12

Justin