emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Re: [babel] Working dir incorrect
Date: Tue, 14 Mar 2017 09:31:33 +0100	[thread overview]
Message-ID: <878to85key.fsf@fu-berlin.de> (raw)
In-Reply-To: CA+M2ft-vmdTDHxpSEwvByrJ5+TaCs56DNOtnDBT7npXShfgbmQ@mail.gmail.com

Hi John,

John Hendy <jw.hendy@gmail.com> writes:

> On Mon, Mar 13, 2017 at 9:32 AM, Loris Bennett
> <loris.bennett@fu-berlin.de> 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?

Thanks for doing most of the work for me.  Unfortunately for me, the ECM
works fine, so I'm going to have to do some work myself and debug my
crufty old .emacs.

Thanks again,

Loris

-- 
This signature is currently under construction.

  reply	other threads:[~2017-03-14  8:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13 14:32 [babel] Working dir incorrect Loris Bennett
2017-03-13 15:42 ` Nick Dokos
2017-03-14  2:40 ` John Hendy
2017-03-14  8:31   ` Loris Bennett [this message]
2017-04-20  9:24     ` Loris Bennett
     [not found] ` <d1f9ebc6d2e9433f896d45bf93ac2016@DB5PR01MB1895.eurprd01.prod.exchangelabs.com>
2017-03-14  7:28   ` Eric S Fraga
2017-03-15  1:17     ` numbchild

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878to85key.fsf@fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).