Re: [R] .Call function crashes initializing matrix

2010-04-11 Thread Erik Wright
, April 10, 2010 3:23 PM To: r help Subject: [R] .Call function crashes initializing matrix Hello, I have a C function that I call from R using .Call. I recently discovered a bug in my code, and I am not sure if it is a problem with what I am doing in C or if it has something to do with my

Re: [R] .Call function crashes initializing matrix

2010-04-11 Thread William Dunlap
-Original Message- From: Erik Wright [mailto:eswri...@wisc.edu] Sent: Sunday, April 11, 2010 1:59 PM To: William Dunlap Cc: r help Subject: Re: [R] .Call function crashes initializing matrix Hi Bill, You were right, thanks! Now I have: int size = 5000; double *matrix

[R] .Call function crashes initializing matrix

2010-04-10 Thread Erik Wright
Hello, I have a C function that I call from R using .Call. I recently discovered a bug in my code, and I am not sure if it is a problem with what I am doing in C or if it has something to do with my use of .Call. I have narrowed my problem down to these two C statements: int size = 5000;

Re: [R] .Call function crashes initializing matrix

2010-04-10 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Wright Sent: Saturday, April 10, 2010 3:23 PM To: r help Subject: [R] .Call function crashes initializing matrix Hello, I have a C function that I call from R using

[R] .Call() function

2009-10-14 Thread sdlywjl666
Dear all, What is the usage of the .Call()? What is the meaning of the follows:

Re: [R] .Call() function

2009-10-14 Thread cls59
sdlywjl666 wrote: Dear all, What is the usage of the .Call()? What is the meaning of the follows:

[R] call function immediately before plot.new()

2008-04-28 Thread Jake Michaelson
Hi all, I would like to be able to call a custom function automatically before plot.new() is called (more specifically, before a new plot is created on the current graphics device). Recently I've been poking around in the help files of some of the low(er) level plotting functions, and I seem to

Re: [R] call function immediately before plot.new()

2008-04-28 Thread Gabor Grothendieck
See: ?frame e.g. setHook(plot.new, function(...) cat(Starting plot\n)) On Mon, Apr 28, 2008 at 9:22 AM, Jake Michaelson [EMAIL PROTECTED] wrote: Hi all, I would like to be able to call a custom function automatically before plot.new() is called (more specifically, before a new plot is

Re: [R] call function immediately before plot.new()

2008-04-28 Thread Matthias Kohl
Hi Jake, are you looking for argument panel.first of plot.default? ?plot.default panel.first: an expression to be evaluated after the plot axes are set up but before any plotting takes place. This can be useful for drawing background grids or scatterplot smooths. hth,

Re: [R] call function immediately before plot.new()

2008-04-28 Thread Jake Michaelson
Thanks Matthias and Gabor. You're both right. Matthias, I think that *was* what I read although now I realize that Gabor's suggestion is more along the lines of what I want to do. Though I have found one situation where this wouldn't really work properly: par(mfrow=c(2,2)) plot(rnorm(10))