Hi there,
Thanks for the quick feedback.
There is no further info on the reason for the crash - R just stops.
The for loop is there just to generate the error. I'm following a previous
example that others couldn't reproduce. I need Rprof to work on a different
set of functions that I haven't
Hi Jim,
Could you be a little more explicit of what the error message is. On
my Windows system 32-bit, I get the following:
Sorry - it just stops as per the message posted. The text is from eclipse.
Rprof()
z - 1
system.time(for (i in 1:1e8) z - z + 1/i)
Error: cannot allocate vector
Am also having trouble with Rprof.
I am using on R 2.15.2 on the Mac (Platform: x86_64-apple-darwin9.8.0/x86_64
(64-bit)).
The example above without profiling takes around a minute to run:
z = 1
for (i in 1:1e8) z = z+1/i
z
[1] 19.9979
With profiling:
Rprof()
z = 1
for (i in 1:1e8)
Could you be a little more explicit of what the error message is. On
my Windows system 32-bit, I get the following:
Rprof()
z - 1
system.time(for (i in 1:1e8) z - z + 1/i)
Error: cannot allocate vector of size 381.5 Mb
Which is probably due to trying to allocate 1e8 elements of integers
Uwe,
I am unfortunately not able to upgrade to R 2.15.2 right now, but I have
seen a similar problem with several older R versions. If you want to
test with a shorter script, you can try the lines below. These provoke a
crash from a fresh R session on my machine (R 2.15.1 Windows 7):
On 14.12.2012 14:22, Jon Olav Skoien wrote:
Uwe,
I am unfortunately not able to upgrade to R 2.15.2 right now, but I have
seen a similar problem with several older R versions. If you want to
test with a shorter script, you can try the lines below. These provoke a
crash from a fresh R session
On 14/12/2012 13:22, Jon Olav Skoien wrote:
Uwe,
I am unfortunately not able to upgrade to R 2.15.2 right now, but I have
Why not? Note that is part of the R-help contract: we only offer any
support for the current version of R (see the posting guide).
The posting guide also asked for
On 12.12.2012 00:05, Marian Talbert wrote:
I'm trying to use Rprof() to identify bottlenecks and speed up a particullary
slow section of code which reads in a portion of a tif file and compares
each of the values to values of predictors used for model fitting. I've
written up an example that
8 matches
Mail list logo