Re: [R] bus error macosx/off-topic

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

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Thu 13 May 2004 - 20:46:25 EST


Message-id: <Pine.LNX.4.44.0405131145070.3244-100000@gannet.stats>

On Thu, 13 May 2004, Ingmar Visser wrote:

> Dear Prof Ripley,
> Thanks for your answer.
>
> On 5/12/04 2:52 PM, "Prof Brian Ripley" <ripley@stats.ox.ac.uk> wrote:
>
> > These normally occur (at that point) from having written off one end of an
> > array. (If you are using .C/.Fortran, they try to copy back the
> > arguments.) Compiling with bounds checking turned on can help, at least
> > with Fortran.
>
> Can I invoke compile options if/when I use R cmd install etc. to install
> packages?

By using a Makevars file: see Writing R Extensions.

> The situation is this: I pass arguments from R to C, then most of these are
> passed on to a Fortran routine, and then the same way back.
>
> I suppose that at the end of the C-routine the arguments are copied back to
> R. Where/who or what decides what the length of a vector is that is passed
> back to R?

You do. It's the same length as you passed in.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


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

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:09 EST