Refactoring: Finding duplicated code

I work on a large internal R package that could be considered "legacy code." That is, the code is working is always needing updates, new features, and bug fixes. Much of the code is duplicated across function, so much so that I have a hard time identifying which duplicated I should factor out first. Does anyone know of a static code analysis tool that works with R that could help me find this duplicated code?

1 Like

I know of dupree by @russHyde

If you need any help using dupree, feel free to ask.

2 Likes

This is exactly what I was looking for! Such an elegant solution. Thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.