Re: [R] demo(scoping)

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Mon 04 Jul 2005 - 04:59:34 EST

On 7/3/05, ronggui <0034058@fudan.edu.cn> wrote:
> entercount an error with demo(scoping).
>
> > demo(scoping)
>
>
> demo(scoping)
> ---- ~~~~~~~
> ___snip_____
>
>
> > ross$balance()
> Your balance is 120
>
>
> > try(ross$withdraw(500))
> Error in ross$withdraw(500) : You don't have that much money!
>

Its supposed to give that behavior since its trying to withdraw 500 from an account that only has 120 in it.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 04 05:02:17 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:11 EST