remake
remake copied to clipboard
Detect unusued functions
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")
This feature would be really useful to me as well!