emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Dynamic tangle target?


From: Grant Rettke
Subject: Re: [O] Dynamic tangle target?
Date: Thu, 22 Sep 2016 14:36:58 -0500

Most things that you can image are also listed here:

https://eschulte.github.io/org-scraps/

Awesome reading for Org-Mode Literate Programmers.
Sincerely,

Grant Rettke


On Wed, Sep 21, 2016 at 8:06 PM, Charles C. Berry <address@hidden> wrote:
> On Wed, 21 Sep 2016, Philip Hudson wrote:
>
>> AFAICT :tangle takes only "yes", "no", or a literal pathname.
>
>
> Stuff like
>
>    :tangle (my-lisp-function arg1 arg2)
>
> will work.
>
>> How
>> might I dynamically generate a pathname for :tangle? I suppose what I
>> want is some kind of escape syntax for eval'ing a Lisp form, like
>> maybe:
>>
>>    :tangle %(my-dynamic-filename-generator)
>
>
> Try this:
>
> #+BEGIN_SRC R :tangle (concat "my-" "file" ".R")
> abs <- def
> #+END_SRC
>
> just as an example.
>
> BTW, org-babel-view-src-block-info (C-c C-v C-i) will show you what header
> args evaluate as without the need to eval or tangle them.
>
> HTH,
>
> Chuck
>



reply via email to

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