RE: [R] Problem about Rprof() (Windows build 1.6.2)

About this list Date view Thread view Subject view Author view Attachment view

From: asone@latte.harvard.edu
Date: Tue 14 Jan 2003 - 01:19:05 EST


Message-id: <000101c2bb0e$bd073e60$0f21da18@hmdcvdcas>

Thank you for your advice, Prof. Ripley.

What I found after your e-mail is as follows:

when the following 4 command lines are typed in R Console one by one on
R (windows) Version 1.6.2 (2003-01-10),

Rprof()
example(lm)
Rprof(NULL)
summaryRprof()

I got profiling results.

However, when I typed the following line in the R console,

        Rprof(); example(lm); Rprof(NULL); summaryRprof()

or

the above 4 command lines were saved as a program file, "testRprof.R",
and it was executed as:

>source("C:/asone/R/testRprof.R")

then I got the following error:

        Error in summaryRprof() : no events were recorded

When I tried the last two approaches, i.e.,

        Rprof(); example(lm); Rprof(NULL); summaryRprof()
        source("C:/asone/R/testRprof.R")

with R (windows) Version 1.5.0 Patched (2002-06-12) with "Rcmd Rprof
Rprof.out",

I could get profiling results.

So is this a problem concerning not Rprof but the command interpreter?

Akio Sone
HU-MIT data center

> -----Original Message-----
> From: r-help-admin@stat.math.ethz.ch
> [mailto:r-help-admin@stat.math.ethz.ch] On Behalf Of Prof
> Brian D Ripley
> Sent: Monday, January 13, 2003 8:23 AM
> To: asone@latte.harvard.edu
> Cc: r-help@stat.math.ethz.ch; dmurdoch@pair.com
> Subject: Re: [R] Problem about Rprof() (Windows build 1.6.2)
>
>
> Rprof()
> example(lm)
> Rprof(NULL)
> summaryRprof()
>
> works perfectly here on the build I installed an hour ago.
>
> Did you perchance forget to turn profiling off as in the
> third line, so the file was not closed?
>
>
> On Sun, 12 Jan 2003 asone@latte.harvard.edu wrote:
>
> > Dear R users:
> >
> > I have a problem about Rprof() on R for windows (Version 1.6.2
> > (2003-01-10)).
> >
> > When I tried to run an R program, which yields non-empty profiling
> > results with Rcmd Rprof on R (windows: Version 1.5.0 Patched
> > (2002-06-12)), I got the following empty result:
>
> --
> 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 272860 (secr)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listin> fo/r-help
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:19 EST