From stvjc at channing.harvard.edu  Mon Jun 29 05:55:30 2009
From: stvjc at channing.harvard.edu (Vincent Carey)
Date: Sun, 28 Jun 2009 23:55:30 -0400
Subject: [Rd] when prompt() throws an error...
Message-ID: <2c3c9e80906282055i2a05566eyfc65f62a60982da5@mail.gmail.com>

output is lost until sink() is issued...  the 'problem' shown in the following
example lies in utils::promptData

> setClass("A", representation(x="numeric"))
[1] "A"
> Z = new("A", x=4)
> prompt(Z)
Created file named 'Z.Rd'.
Edit the file and move it to the appropriate directory.
> setClass("A", representation(x="numeric", y="numeric"))
[1] "A"
> prompt(Z)
Error in FUN(c("x", "y")[[2L]], ...) :
  no slot of name "y" for this object of class "A"
>
> date()
> sink()
> date()
[1] "Sun Jun 28 23:45:35 2009"
> sessionInfo()
R version 2.10.0 Under development (unstable) (2009-06-23 r48824)
x86_64-unknown-linux-gnu

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base

other attached packages:
[1] ALL_1.4.5     Biobase_2.5.4

loaded via a namespace (and not attached):
[1] tools_2.10.0


-- 
Vincent Carey, PhD
Biostatistics, Channing Lab
617 525 2265



[Rd] when prompt() throws an error...
Vincent Carey