changed.funs {mvbutils} | R Documentation |
Show functions and callees in environment 'egood' that have changed or disappeared in environment 'ebad'.
Description
Useful eg when you have been modifying a package, and have buggered stuff up, and want to partly go back to an earlier version... entirely hypothetical of course, things like that never ever happens to me. Mere mortals might want to create a new environment goodenv
, use evalq(source(<<old.mypack.R.source.file>> local=T), goodenv)
, then find.changes( goodenv, asNamespace("mypack"))
. If your package is lazy-loaded, you're stuffed; I avoid lazy-loading, except perhaps for final distribution, because it just makes it much harder to track problems. Not that I ever have problems, of course.
Can be applied either to a specified set of functions, or by default to all the functions in egood
. If the former, then all callees of the specified functions are also checked for changes, as are all their callees, and so on recursively.
Usage
changed.funs(egood, ebad, topfun, fw = NULL)
Arguments
egood , ebad |
environments #1 & #2. Not symmetric; functions only in |
topfun |
name of functions in |
fw |
if non-NULL, the result of a previous call to |
Value
Character vector with the names of changed/lost functions.