From sfalcon at fhcrc.org  Fri Apr 27 17:01:53 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Fri, 27 Apr 2007 08:01:53 -0700
Subject: [Rd] system() in packages
In-Reply-To: <3E7A71D7-49A5-4C2E-A365-9D2387D76D3B@soc.soton.ac.uk> (Robin
	Hankin's message of "Fri, 27 Apr 2007 15:13:09 +0100")
References: <3E7A71D7-49A5-4C2E-A365-9D2387D76D3B@soc.soton.ac.uk>
Message-ID: <m2ejm5oo7y.fsf@ziti.fhcrc.org>

Robin Hankin <r.hankin at noc.soton.ac.uk> writes:
> My question is, how to deal with the possibility that pari/gp is not
> installed?

You could add a configure script to your package to detect the
availability of the tools you want to rely on.

On package load, you could try a simple call and determine whether it
errored out or not and set action based on that.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] system() in packages
Seth Falcon