[R] dead code removal

Juan Carlos Borrás jcborras at gmail.com
Tue Jul 19 11:57:36 CEST 2011


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 <sunduck at 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



More information about the R-help mailing list