[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [babel] Working dir incorrect

From: John Hendy
Subject: Re: [O] [babel] Working dir incorrect
Date: Mon, 13 Mar 2017 21:40:15 -0500

On Mon, Mar 13, 2017 at 9:32 AM, Loris Bennett
<address@hidden> 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 @

$ 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
 '((R . t)))


- 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



: /home/jwhendy/Desktop

#+begin_src R :session r



: /home/jwhendy/Desktop


How does this go for you?

> Cheers,
> Loris
> --
> This signature is currently under construction.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]