def func_lineno(func_name): cmd = 'as.list(body({0}))'.format(func_name) lines = str(r(cmd)) return lines
def untrace(what): cmd = 'untrace("{0}")'.format(what) r(cmd)
def trace(what, tracer, at): cmd = 'trace("{0}",{1}, at={2})'.format(what, tracer, at) r(cmd)