From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: [babel] Working dir incorrect Date: Mon, 13 Mar 2017 21:40:15 -0500 Message-ID: References: <8760jd4592.fsf@fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cncNm-0002wt-IE for emacs-orgmode@gnu.org; Mon, 13 Mar 2017 22:40:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cncNl-0000CB-Dm for emacs-orgmode@gnu.org; Mon, 13 Mar 2017 22:40:18 -0400 Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:33659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cncNl-0000Bh-A3 for emacs-orgmode@gnu.org; Mon, 13 Mar 2017 22:40:17 -0400 Received: by mail-io0-x22f.google.com with SMTP id f84so95105451ioj.0 for ; Mon, 13 Mar 2017 19:40:17 -0700 (PDT) In-Reply-To: <8760jd4592.fsf@fu-berlin.de> 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" To: Loris Bennett Cc: emacs-orgmode On Mon, Mar 13, 2017 at 9:32 AM, Loris Bennett wrote: > Hi, > > In a file that used to work, when I now try to run some R code which > generates an image, I get the error: > > cannot open file './usage_users_historical_facet.pdf' > > If I check the working directory for the R session I see > > getwd() > [1] "/usr/share/emacs/site-lisp/ess" > > instead of the directory in which my org file is located. > > I am now running Org 9.0.5 on Emacs 25.1.1. The last time things worked > I was definitely using an older version of Org and possibly Emacs 24. > > Any thoughts? I agree with Nick on an ECM. Just to start the ball rolling: M-x org-version Org mode version 9.0.5 (release_9.0.5-288-g4caad0 @ /home/jwhendy/.elisp/org/lisp/) $ emacs --version GNU Emacs 25.1.1 #+begin_src min-config ;; set load paths (add-to-list 'load-path "~/.elisp/org.git/lisp/") (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp/") (add-to-list 'load-path "~/.elisp/ess/lisp/") (require 'ess-site) ;; setup babel languages (org-babel-do-load-languages 'org-babel-load-languages '((R . t))) #+end_src method: - emacs -Q - M-x load-file /path/to/min-config - C-c C-c on both of these blocks and get the results as shown ;;;;;;;; file: ~/Desktop/test.org ;;;;;;;;; * heading #+begin_src R getwd() #+end_src #+RESULTS: : /home/jwhendy/Desktop #+begin_src R :session r getwd() #+end_src #+RESULTS: : /home/jwhendy/Desktop ;;;;;;;;;;;;;;;;; How does this go for you? John > > Cheers, > > Loris > > -- > This signature is currently under construction. > >