From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: org-babel - First line of file created by tangle Date: Wed, 3 Feb 2010 21:38:18 +0200 Message-ID: References: <873a1ib5f7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0010256260==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncl3N-0000HI-Ph for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 14:38:21 -0500 Received: from [199.232.76.173] (port=37935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncl3N-0000HA-H3 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 14:38:21 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncl3M-0008NN-23 for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 14:38:21 -0500 Received: from fg-out-1718.google.com ([72.14.220.158]:50072) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ncl3L-0008NH-HY for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 14:38:19 -0500 Received: by fg-out-1718.google.com with SMTP id 16so18963fgg.12 for ; Wed, 03 Feb 2010 11:38:18 -0800 (PST) In-Reply-To: <873a1ib5f7.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode --===============0010256260== Content-Type: multipart/alternative; boundary=0016e6d7790c3e6833047eb75ca7 --0016e6d7790c3e6833047eb75ca7 Content-Type: text/plain; charset=ISO-8859-1 Hi Eric On Wed, Feb 3, 2010 at 7:22 PM, Eric Schulte 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 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 --0016e6d7790c3e6833047eb75ca7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Eric

On Wed, Feb 3, 2010 at 7:22 PM, E= ric Schulte <schulte.eric@gmail.com> wrote:
Hi Rainer,

I just responded to your other email with a global solution to this
problem. =A0

Thanks - I'll look at it i= n detail tomorrow.
=A0
Do you= think this is the sort of thing that would need to be
customized on a per-block or per-file/subtree basis?
<= br>
Yes, I think it would be useful. An example would be if I wan= t 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 m= ight 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 t= wo additional header arguments for each block:

:shebang NIL for default, other string fo= r the shebang line
:headers NIL for default, NONE for no headers, other string for custom head= ers
=A0

If so we may want to move this customization behind a header argument.
<= /blockquote>

That would be great

Cheers,

Rainer
=A0

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.=A0
> When tangling R code, I would like to skip (or customize) the first li= ne of the resulting R file. It
> reads "#!/usr/bin/env Rscript" and I would either like to ex= clude it completely, or replace it with
> e.g. "## R"
>
> I am sourcing the files anyway from a different R session and I don= 9;t need to execute them directly.
>
> Cheers,
>
> Rainer
>
> --
> NEW GERMAN FAX NUMBER!!!
>
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Bio= logy, 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: =A0 =A0 =A0 =A0 =A0 +27 - (0)83 9479 042
> Fax: =A0 =A0 =A0 =A0 =A0 =A0+27 - (0)86 516 2782
> Fax: =A0 =A0 =A0 =A0 =A0 =A0+49 - (0)321 2125 2244
> email: =A0 =A0 =A0 =A0 =A0Rainer@krugs.de
>
> Skype: =A0 =A0 =A0 =A0 =A0RMkrug
> Google: =A0 =A0 =A0 =A0 R.M.Krug@gmail.com
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmo= de@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 Invas= ion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch UniversityMain Campus, Merriman Avenue
Stellenbosch
South Africa

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

Skype: =A0 =A0 =A0 =A0 =A0RMkrug
Google: =A0 =A0 =A0 =A0 R.M.Krug@gmail.com=

--0016e6d7790c3e6833047eb75ca7-- --===============0010256260== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0010256260==--