From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: HowTo? have R :sessions in org mode invoke a specific R Date: Mon, 4 Nov 2013 12:02:00 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdOTU-0003Gm-N1 for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 13:02:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdOTS-0000Ew-2c for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 13:02:04 -0500 Received: from mail-oa0-x233.google.com ([2607:f8b0:4003:c02::233]:58377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdOTR-0000Ec-UP for emacs-orgmode@gnu.org; Mon, 04 Nov 2013 13:02:02 -0500 Received: by mail-oa0-f51.google.com with SMTP id h2so1844580oag.10 for ; Mon, 04 Nov 2013 10:02:01 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Cook, Malcolm" Cc: Org-Mode On Mon, Nov 4, 2013 at 11:22 AM, Cook, Malcolm wrote: > I wish to lock an org buffer to a particular installation of R so that all code blocks use it. > > I found that I could not, for instance, write `:session R-3.0.1`. > > Is there some best way for me to accomplish this? > > Perhaps some way of setting inferior-R-program-name to a buffer local value? I'm no good at in-buffer variables, but this one looks of interest: org-babel-R-command Mine on linux is just set to `R --slave --no-save`, but on Windows, I have to set the full path, so there's no reason you couldn't do the same (just that I simply use setq() and you'd be doing it in-buffer). Hope that helps, John > > Thanks! > > ~Malcolm > >