From h.wickham at gmail.com  Mon Aug 22 18:29:05 2005
From: h.wickham at gmail.com (hadley wickham)
Date: Mon, 22 Aug 2005 11:29:05 -0500
Subject: [Rd] Package tests: best practices
Message-ID: <f8e6ff050508220929295cad3e@mail.gmail.com>

I'm writing some tests for a package and I have a few questions
regarding best practices.  I've read "tests subdirectory" paragraph in
writing R extension, but I'm left wanting more.
Firstly, can I assume that the document root will always be set to the
test directory? (that what a couple of quick tests seemed to show)

Obviously, I want to test the code in my package - how do I load it? 
I assume I can't use library(XXX) because that will load the currently
installed version - should I source in all ../R/*.r instead?

Thanks for your advice,

Hadley



[Rd] Package tests: best practices
hadley wickham