[R] Test Case for Package

Vikram Bahure
Wed, 19 Oct 2011 08:13:51 -0000

Hi,

I had a query for writing a test case for a package.

If we are testing a function then do we need to call that function for
testing; library(mypackage)? Is that any circular logic any way.

For eg. if I create a package mypackage, can I have a file mypackagetest in
the tests directory whose line is library(mypackage).

It would be helpful if I could get some input on this.

Regards
Vikram

	[[alternative HTML version deleted]]