[ESS] remote R via ssh - customizing the command used to start R
@je30 @end|ng |rom c@m@@c@uk
Mon Jan 4 23:15:08 CET 2016
Oops you don't need the setq in the let construct.
On 4 January 2016 21:58:17 GMT+00:00, Stephen Eglen <sje30 using cam.ac.uk> wrote:
>Thanks for the follow up to the list Chris, glad it works:
>> (defun RserverB ()
>> "Run R on serverA using the R.magic script"
>> (setq inferior-R-program-name "/home/USER/bin/R.magic")
>> (setq ess-directory "/ssh:USER using serverB:~/")
>I think you may need (again untested)
>(defun RserverB ()
> "Run R on serverA using the R.magic script"
> (let ((inferior-R-program-name "/home/USER/bin/R.magic")
> (setq ess-directory "/ssh:USER using serverB:~/"))
>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.
>ESS-help using r-project.org mailing list
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[[alternative HTML version deleted]]
More information about the ESS-help