Try the following:
(defun open-r-project () (interactive) (delete-other-windows) (split-window-horizontally) (R) (ess-change-directory "~/projects/") (next-multiframe-window) (find-file "~/projects/") (previous-multiframe-window) ) (global-set-key (kbd "Cc r") 'open-r-project)
Please note, however, that this is my first LISP function. I do not know how to configure the project dir parameter. Let's try tomorrow. Oh, and note that I'm using the SVN version of ESS.
source share