[R] monitor variable change

Rainer M Krug r.m.krug at gmail.com
Wed Feb 16 15:26:21 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/16/2011 03:24 PM, Hadley Wickham wrote:
>> You can replace the previous line by:
>>
>> browser(expr=(a!=old.a)
>>
>> see ?browser for details.
> 
> I don't understand why you'd want to do that - using if is much more
> readable to me (and is much more general!)

True - and I probably would use that one as well - but there is the
syntax which is like a "conditional breakpoint" - so I just pointed it out.

Cheers,

Rainer

> 
> Hadley
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1b3o0ACgkQoYgNqgF2egriOQCdHzuptDK+N/OPrzE7wBI9Omjs
fVgAn20cjAGGPZ+qz70cmjoGqhCixUj0
=hU1/
-----END PGP SIGNATURE-----



More information about the R-help mailing list