Re: [R] demo(scoping)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 12 Jul 2005 - 03:28:10 EST

Why have you sent a message about this, which no indication except the non-English word `entercount'?

Note that the message came from within try(), so it was intentional. If you look at the source it says

         try(ross$withdraw(500)) # no way..

It is helpful to learn how the code being demonstrated (here try) works. If you don't understand it. please explain your difficulty in as much detail as you can.

On Mon, 4 Jul 2005, ronggui 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!
>
>
>> version
> _
> platform i486-pc-linux-gnu
> arch i486
> os linux-gnu
> system i486, linux-gnu
> status beta
> major 2
> minor 1.1
> year 2005
> month 06
> day 13
> language R
>
>
> --
> Department of Sociology
> Fudan University,Shanghai
> Blog:http://sociology.yculblog.com
>
> ______________________________________________
> 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
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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 Tue Jul 12 03:33:17 2005

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