Ideally you'd have the next two items available:
- tests that ensure that your code carries out what it should and as it should.
- a coverage analysis tool that reports what parts of your code have
been and have not been executed by your tests above.
Neither of those are mandatory though, but they will save you from
nightmares later on.
While there are a few tests harnesses for doing the former (i.e.
RUnit, test_that and so on...), I am not aware of any code coverage
tools for R, sadly.
Cheers,
jcb!

On Tue, Jul 19, 2011 at 9:51 AM, Alex Bird <sund...@gmail.com> wrote:
> Hi there,
>
>  I have some unused code in my project but have no idea how to clean
> it up in some kind of automatic way.
>  Maybe there are some tools/ways to identify and remove/mark dead
> parts of the code?
>
> Thanks in advance!
>
> Kind regards,
> Alex

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to