From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Rainer Subject: Re: Difference between eval and export Date: Mon, 29 Sep 2014 13:14:06 +0200 Message-ID: <7BF13CBC-2578-4E43-98B7-3D6D7D4D6C18@gmail.com> References: <28C8F16D-2F4D-441A-8556-C1BF087F797E@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYYuI-0003Fi-OR for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 07:14:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYYuE-0008K4-AU for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 07:14:18 -0400 Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]:38420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYYuE-0008JW-4l for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 07:14:14 -0400 Received: by mail-we0-f181.google.com with SMTP id u57so1255647wes.12 for ; Mon, 29 Sep 2014 04:14:08 -0700 (PDT) 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: Grant Rettke Cc: Rainer M Krug , "emacs-orgmode@gnu.org" I checked the environment variables in Emacs and also in R (using = Sys.getenv). all environment variables are set correctly (I am now also = using =93exec-path-from-shell=94 to make sure that Emacs is reading = system environment variables). It is absolutely strange. I only get the error when I export the org = file, but not if I execute R code chunk by code chunk sequentially. best, jo On 26 Sep 2014, at 21:58, Grant Rettke wrote: > On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug = wrote: >> Grant Rettke writes: >>> My eye is on you post about that topic because I would also like to = know. >>=20 >> As you are using R, and if you are using sessions, what about setting >> them from within R[1]? >>=20 >> Footnotes: >> [1] = http://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.setenv.html >=20 > Yes indeed. I am quite interested in the general mechanism of how the > environment exists for when exports occur and in particular whether or > not it is different somehow. Right now I've delegated things between > [1] and .Renviron.