From pdalgd at gmail.com  Fri Nov 12 00:25:23 2010
From: pdalgd at gmail.com (Peter Dalgaard)
Date: Fri, 12 Nov 2010 00:25:23 +0100
Subject: [Rd] Evaluation puzzle
In-Reply-To: <1289514423.29759.23.camel@punchbuggy>
References: <201011112008.oABK8xjk025512@punchbuggy.mayo.edu>	<AANLkTim4PP95Ts=wPBRs1JskyTQwM3WdFrnYgscEzAXe@mail.gmail.com>
	<1289514423.29759.23.camel@punchbuggy>
Message-ID: <4CDC7B63.1020302@gmail.com>

On 11/11/2010 11:27 PM, Terry Therneau wrote:

>  I'm still puzzled by recover though.

It looks like a buglet. You get to the right frame (try ls()) but the
"called from" message is off by four frames.

E.g.

Selection: 1
Called from: model.frame(formula = "zed ~ 1+age+sex+year", data = mydata)
Browse[1]> ls()
[1] "mydata" "zed"
Browse[1]> tfun
function(mydata) {
     zed <- 100 + (1:nrow(mydata)) * 20
     survexp.test(zed ~ 1, data=mydata)
     }

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] Evaluation puzzle
Peter Dalgaard