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