[ESS] remote R via ssh - customizing the command used to start R
    Stephen Eglen 
    @je30 @end|ng |rom c@m@@c@uk
       
    Mon Jan  4 22:58:17 CET 2016
    
    
  
Thanks for the follow up to the list Chris, glad it works:
> (defun RserverB ()
>    "Run R on serverA using the R.magic script"
>    (interactive)
>    (setq inferior-R-program-name "/home/USER/bin/R.magic")
>    (setq ess-directory "/ssh:USER using serverB:~/")
>    (R))
I think you may need (again untested)
(defun RserverB ()
   "Run R on serverA using the R.magic script"
   (interactive)
   (let ((inferior-R-program-name "/home/USER/bin/R.magic")
	 (setq ess-directory "/ssh:USER using serverB:~/"))
     (R)))
the let statement means that you only temporarily bind those two
variables; otherwise in your version, after running RserverB, you will
find that inferior-R-program-name has changed from its default of R.
Stephen
    
    
More information about the ESS-help
mailing list