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