Re: [R] Test Case for Package

2011-10-19 Thread Uwe Ligges
On 19.10.2011 10:13, Vikram Bahure wrote: 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 fil

[R] Test Case for Package

2011-10-19 Thread Vikram Bahure
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 l