remake icon indicating copy to clipboard operation
remake copied to clipboard

Detect unusued functions

Open dfalster opened this issue 9 years ago • 1 comments

Given that remake maps out the dependency tree, is it easy to detect unused functions in your code?

The use case is as follows. You're working on a project, storing functions within a folder called R and running everything via remake. After a while you might accumulate a lot of redundant or unused code so decide to go through and delete all the unused functions from the folder R. Currently I do this by searching on the name of each function. But wouldn't it be nice if I could type

remake::detect_unused_functions()

or

remake::detect_unused_functions("R")

dfalster avatar Oct 20 '16 01:10 dfalster

This feature would be really useful to me as well!

fmichonneau avatar Oct 20 '16 02:10 fmichonneau