[Rd] when prompt() throws an error...
Vincent Carey
stvjc at channing.harvard.edu
Mon Jun 29 05:55:30 CEST 2009
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
More information about the R-devel
mailing list