Takes the name of a system options(opt=)
and checks to see if option opt
is
set to TRUE
, taking its default value to be FALSE
. If TRUE
, a function is
created that calls prn()
to print an object with the object's name in the
description along with the option name and the name of the function within which
the generated function was called, if any. If option opt
is not set, a dummy function
is generated instead. If options(debug_file=)
is set when the generated function
is called, prn()
output will be appended to that file name instead of the console.
At any time, set options(debug_file='')
to resume printing to the console.