From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: passing LC_ALL environment variable to org export call Date: Mon, 29 Sep 2014 14:06:17 +0200 Message-ID: <87y4t2ws06.fsf@gmx.us> References: <87ppeiv621.fsf@gmx.us> <93730A3A-00B0-431D-8498-7D7852D15AAA@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYZjD-0000qo-UV for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 08:07:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYZj6-00059r-EY for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 08:06:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:51337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYZj6-00058I-7V for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 08:06:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XYZiq-00013D-MW for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 14:06:32 +0200 Received: from 109.201.154.189 ([109.201.154.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Sep 2014 14:06:32 +0200 Received: from rasmus by 109.201.154.189 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Sep 2014 14:06:32 +0200 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: emacs-orgmode@gnu.org Johannes Rainer writes: > thanks for your hint. I checked Sys.getenv before and after the > failing code, but LC_ALL was always properly set. I’m afraid my > problem relates to some Mac LLVM and GCC gfortran compiler thing, > since I’m using a R version compiled against the Mac Accelerate > framework (vecLib)… it is just so strange that I only get the error in > Emacs org-mode upon exporting the org file, but not, if I evaluate > each code chunk separately. But are you using .C, .Fortran or Rcpp in your code-block? If not, why would your compilers matter? (I'm not an expert on R internals, so my comment may be naïve). As a short turn solution try to add this to the top of your file #+PROPERTY: session *R* These days you might even get away with just #+PROPERTY: session I'm not sure. This should run your code from the same session. [This should be equivalent to adding :session to babel blocks, but check the manual if it ain't working] > to set all environment variables I’m using the “exec-path-from-shell” > extension, so, all environment settings from the shell are available > in Emacs. Are you exporting async or "normally"? If async, do you get the error when exporting "normally"? —Rasmus -- Hvor meget poesi tror De kommer ud af et glas isvand?