emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG][babel] Tangling into directories does not add directories


From: Grant Rettke
Subject: Re: [O] [BUG][babel] Tangling into directories does not add directories to org file
Date: Thu, 9 Oct 2014 21:13:44 -0500

Sounds like a valuable use of R.

Do you have a writeup on the approach or is it a standard feature of
org and ess?

On Thu, Oct 9, 2014 at 7:37 AM, Rainer M Krug <address@hidden> wrote:
>
> I'd like to ping this as I think it
> is an important bug. It e.g. make debugging of R packages, whose source
> is in org, more difficult, (the .R files are tangled into ./R/) as ess
> does not find the source of the R code in R as it uses the links in the
> comments to find the org file.
>
> Temporary solution: I created a link to the org file in the ./R directory.
>
> Cheers,
>
> Rainer
>
> Rainer M Krug <address@hidden> writes:
>
>> When in the tangling taerget a directory is specified, this is not
>> reflected in the comments in the tangled file when comments are set to
>> include links:
>>
>> ,----
>> |    * `link' The code block is wrapped in comments which contain
>> |      pointers back to the original Org file from which the code was
>> |      tangled.
>> `----
>>
>> In the org file =prodMixStands.org=:
>>
>> ,----
>> | :PROPERTIES:
>> | :header-args+: :tangle ./R/update.cache.R
>> | :END:
>> | #+begin_src R
>> | test
>> | #+end_src
>> `----
>>
>> results in the file =update.cache.R= in a link to the file
>> =prodMixStands.org= and not =./../prodMixstands.org=:
>>
>> ,----
>> |  ## [[file:prodMixStands.org::*Begin][Begin:1]]
>> `----
>>
>> This is particularly bad when using ess and developer mode to develop a
>> package.
>>
>> Cheers,
>>
>> Rainer
>
> --
> Rainer M. Krug
> email: Rainer<at>krugs<dot>de
> PGP: 0x0F52F982
>



-- 
Grant Rettke
address@hidden | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



reply via email to

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