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: Thu, 20 Apr 2017 11:24:55 +0200	[thread overview]
Message-ID: <87r30nwhw8.fsf@fu-berlin.de> (raw)
In-Reply-To: 878to85key.fsf@fu-berlin.de

Hi,

"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> 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:
>>
[snip (54 lines)]
>>
>> 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.

I finally got round to bisecting my .emacs and worked out the sequence
of events which lead me to shooting myself in the foot:

1. Installed Emacs 25 under /usr/local
2. Discovered that Emacs 25 couldn't find the ESS stuff
3. Defined a variable 'ess-directory' to be "/usr/share/emacs/site-lisp/ess/"
4. Used the variable in a function to add ESS to the load-path 

It turns out that variable 'ess-directory' already exists and is, according
to the documentation, "the directory ESS is run from".

Thus renaming the variable 'ess-directory' to
'non-in-the-foot-shooting-ess-directory' solves the problem.

Cheers,

Loris

-- 
This signature is currently under construction.

  reply	other threads:[~2017-04-20  9:25 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
2017-04-20  9:24     ` Loris Bennett [this message]
     [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=87r30nwhw8.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).