Re: [R] R: to view the memory

2007-09-12 Thread Henrik Bengtsson
riables at whatever state your > function is in. (and debugging is specifically what browser() was designed > for). > > See ?browser() > > > Bert Gunter > Genentech Nonclinical Statistics > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >

Re: [R] R: to view the memory

2007-09-12 Thread Bert Gunter
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 7:02 PM To: r-help@r-project.org Subject: [R] R: to view the memory Hello, I am wondering if it is possible to view what variables and vairable values are

Re: [R] R: to view the memory

2007-09-12 Thread Matthew Keller
izes))-widim+12),"\n")} On 9/12/07, Doran, Harold <[EMAIL PROTECTED]> wrote: > Is this what you want when you say "values". It seems this could be very > expensive if some of your objects are large matrices, for example. I > thought the poster meant "size

Re: [R] R: to view the memory

2007-09-12 Thread Doran, Harold
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of R Help > Sent: Wednesday, September 12, 2007 8:28 AM > To: [EMAIL PROTECTED] > Cc: r-help@r-project.org > Subject: Re: [R] R: to view the memory > > the function ls() will

Re: [R] R: to view the memory

2007-09-12 Thread R Help
the function ls() will list all the variables currently in the memory. To get their values, you'll also need to use the parse and eval functions. Try the following: x = ls() for(i in 1:length(x)){ print(x[i]) print(eval(parse(text=x[i]))) } It's a little crude, but it will do the job.

Re: [R] R: to view the memory - and a quiz

2007-09-12 Thread Martin Maechler
> <[EMAIL PROTECTED]> > on Wed, 12 Sep 2007 03:01:43 +0100 writes: > Hello, I am wondering if it is possible to view what > variables and vairable values are stored in the R > memory. This to enable debugging of R-scripts I write. In simple to moderately small examples,

[R] R: to view the memory

2007-09-11 Thread Sumit.Gupta
Hello, I am wondering if it is possible to view what variables and vairable values are stored in the R memory. This to enable debugging of R-scripts I write. Sumit [[alternative HTML version deleted]] __ R-help@r-project.org mailing list http