【发布时间】:2017-02-03 14:02:44
【问题描述】:
我想把函数对象转成字符串
fn=function(x)
{
return(2*x)
}
my_convert_function(fn)
# would give
#"fn=function(x)
#{
# return(2*x)
#}"
有可能吗?谢谢你的想法
【问题讨论】:
-
capture.output(fn)怎么样 -
这很好用,谢谢