I have a package and am debating altering the code of a function. I will but want to determine how that affects everything else. I have this as a package on github and a local repo. My initial thought was to list all the functions in the package (even ones that are not loaded in the namespace) and then some how send all those to the console. Then I could cut and paste the code to a text editor and look for instances of this function being used.
I don’t want to reinvent the wheel if there’s an easy solution to this problem. If my way seems like the most reasonable I still don’t know how to make that occur.
It’s called unit testing. And while it is no panacea (“you cannot prove or test correctness”) is helps a good deal.
See this page at the R Wiki for an introduction.