changed.funs: Show functions and callees in environment 'egood' that have...

Description Usage Arguments Value

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

1
changed.funs(egood, ebad, topfun, fw = NULL)

Arguments

egood, ebad

environments #1 & #2. Not symmetric; functions only in ebad won't be checked.

topfun

name of functions in egood to check; all callees will be checked too, recursively. Default is all functions in egood.

fw

if non-NULL, the result of a previous call to foodweb(egood), but this will be called automatically if not.

Value

Character vector with the names of changed/lost functions.


mvbutils documentation built on May 2, 2019, 8:32 a.m.