From jeff.a.ryan at gmail.com  Fri Dec 12 17:14:58 2008
From: jeff.a.ryan at gmail.com (Jeff Ryan)
Date: Fri, 12 Dec 2008 10:14:58 -0600
Subject: [Rd] package development
In-Reply-To: <49428BB7.6030406@bank-banque-canada.ca>
References: <200812112304.mBBN4stJ008607@rocky.mayo.edu>
	<4941A995.1040409@stats.uwo.ca>
	<49427147.5070204@bank-banque-canada.ca>
	<e8e755250812120747x241cde78y65e12b3a27ea518a@mail.gmail.com>
	<49428BB7.6030406@bank-banque-canada.ca>
Message-ID: <e8e755250812120814s4cdf78abj198d285347fbed31@mail.gmail.com>

I think the /tmp file gets removed:

ERROR: lazy loading failed for package 'xts'
** Removing '/private/tmp/Rinst625532301/xts'
 ERROR
Installation failed.
Removing '/tmp/Rinst625532301'

At least it seems to when I run R CMD from the shell.

>
> Yes, there are several options for not distributing tests.  I was thinking
> more about how to distribute them with a simple mechanism for anyone to run
> them, but in a way that they are not run by the usual R CMD check.
>

You can still distribute the tests in the inst/unitTests directory,
you would just have to make sure that the calling script in the /tests
directory is commented out.

Alternately you could have that /tests/doRUnit.R script (or whatever
you call it/them) check for some environment variable to be set before
running the full suite.

Jeff



[Rd] package development
Jeff Ryan