emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer M Krug <r.m.krug@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: org-babel - First line of file created by tangle
Date: Wed, 3 Feb 2010 21:38:18 +0200	[thread overview]
Message-ID: <fb7c7e871002031138r236e7980i5c5305804f9a5215@mail.gmail.com> (raw)
In-Reply-To: <873a1ib5f7.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2993 bytes --]

Hi Eric

On Wed, Feb 3, 2010 at 7:22 PM, Eric Schulte <schulte.eric@gmail.com> wrote:

> Hi Rainer,
>
> I just responded to your other email with a global solution to this
> problem.


Thanks - I'll look at it in detail tomorrow.


> Do you think this is the sort of thing that would need to be
> customized on a per-block or per-file/subtree basis?
>

Yes, I think it would be useful. An example would be if I want to create two
scripts, where one is running on my local computer, and the other on a
cluster, in which the paths might be different. Also: there is, in addition
to R, also Ra, with Just-In-Time compiling functionality. It might be useful
to be able to have two R scripts, one using R, the other Ra, for e.g.
profiling. Another example would be to try different versions of e.g. R.

So yes, I think it would be very useful to define the two additional header
arguments for each block:

:shebang NIL for default, other string for the shebang line
:headers NIL for default, NONE for no headers, other string for custom
headers


>
> If so we may want to move this customization behind a header argument.
>

That would be great

Cheers,

Rainer


>
> Thanks -- Eric
>
> Rainer M Krug <r.m.krug@gmail.com> writes:
>
> > Hi
> >
> > I am sure I can customize it, but I could not find it.
> > When tangling R code, I would like to skip (or customize) the first line
> of the resulting R file. It
> > reads "#!/usr/bin/env Rscript" and I would either like to exclude it
> completely, or replace it with
> > e.g. "## R"
> >
> > I am sourcing the files anyway from a different R session and I don't
> need to execute them directly.
> >
> > Cheers,
> >
> > Rainer
> >
> > --
> > NEW GERMAN FAX NUMBER!!!
> >
> > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
> Biology, UCT), Dipl. Phys.
> > (Germany)
> >
> > Centre of Excellence for Invasion Biology
> > Natural Sciences Building
> > Office Suite 2039
> > Stellenbosch University
> > Main Campus, Merriman Avenue
> > Stellenbosch
> > South Africa
> >
> > Cell:           +27 - (0)83 9479 042
> > Fax:            +27 - (0)86 516 2782
> > Fax:            +49 - (0)321 2125 2244
> > email:          Rainer@krugs.de
> >
> > Skype:          RMkrug
> > Google:         R.M.Krug@gmail.com
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>



-- 
NEW GERMAN FAX NUMBER!!!

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:           +27 - (0)83 9479 042
Fax:            +27 - (0)86 516 2782
Fax:            +49 - (0)321 2125 2244
email:          Rainer@krugs.de

Skype:          RMkrug
Google:         R.M.Krug@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 4764 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-02-03 19:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-03  7:52 org-babel - First line of file created by tangle Rainer M Krug
2010-02-03 17:22 ` Eric Schulte
2010-02-03 19:38   ` Rainer M Krug [this message]
2010-02-03 20:15     ` Eric Schulte
2010-02-04  6:47       ` Rainer M Krug

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=fb7c7e871002031138r236e7980i5c5305804f9a5215@mail.gmail.com \
    --to=r.m.krug@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).