1

While doing statistical work in ESS, I often want to evaluate everything from the top of buffer to point. This is to make sure that my analysis is reproducible (i.e. script can be run from top to bottom and gives the right result).

Is there a way to do this in ESS?

3

The function you are looking for is ess-eval-buffer-from-beg-to-here (bound to C-c <C-up> by default).

I found this using M-x apropos "ess eval".

  • Thanks! I just figured this out myself with suggestions from helm. Thanks for explaining how to get to the answer as well -- very helpful for beginners. – Heisenberg Apr 1 '17 at 18:46
  • @Heisenberg Even better! Helm's implementation for describe-function is pretty handy – ebpa Apr 1 '17 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.