[R] demo(scoping)

Gabor Grothendieck ggrothendieck at gmail.com
Sun Jul 3 20:59:34 CEST 2005


On 7/3/05, ronggui <0034058 at 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.




More information about the R-help mailing list