[R] Quiz {was "Quit asking me .."}
Thomas Lumley
tlumley at u.washington.edu
Wed Sep 17 16:14:58 CEST 2003
On Wed, 17 Sep 2003, Martin Maechler wrote:
>
> How can you write (quite short!) R code such that
> typing
> "Q"
>
> -- without any "()" -- will quit R (without asking about saving).
>
> [But you shouldn't really keep that code active in your standard R session
> because it would be too easy to accidentally shut down R !]
>
> For the advanced ones:
> My shortest solution uses 51 characters of R code, can you beat that?
>
Easily
Q<-delay(q("yes"))
-thomas
More information about the R-help
mailing list