From ripley at stats.ox.ac.uk  Wed Jan 26 16:23:38 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed Jan 26 16:23:55 2005
Subject: Adding Perl scripts to a package ([Rd] Regex Crashing R (perl
	= TRUE))
In-Reply-To: <BFBC0B16-6FA7-11D9-9992-000D933A3A9E@fhcrc.org>
References: <20050125210305.18BD11088E@slim.kubism.ku.dk>
	<BFBC0B16-6FA7-11D9-9992-000D933A3A9E@fhcrc.org>
Message-ID: <Pine.LNX.4.61.0501261521120.4036@gannet.stats>

What has this to do with your subject?

I think this is rather what the exec directory is for, depending exactly 
what `an uncompiled perl script' really is.

On Wed, 26 Jan 2005, Seth Falcon wrote:

> A side response...
>
> On Jan 25, 2005, at 1:03 PM, Robert.McGehee@geodecapital.com wrote:
>
>> As a side note, is there a good way of incorporating an uncompiled perl
>> script into an R package to be invoked from a system call? Putting it in
>> the /src directory seems like the obvious place, but I can't convince R
>> to copy over the script uncompiled upon installation.
>
> That's what the inst/ directory of a package is for, I believe.  Look for 
> details in the Writing R Extensions manual.  You might also want to look at 
> system.file() which can help you locate files in an installed package.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


Adding Perl scripts to a package ([Rd] Regex Crashing R (perl = TRUE))
Prof Brian Ripley