[Rd] How to get R cmd to check Fortran array bounds

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Sep 10 07:14:34 CEST 2013


On 09/09/2013 21:31, Marian Talbert wrote:
> I'm trying to get the this Fortran array bounds check to run on my code as my
> package has been rejected for failing this test.  I read writing R
> extensions and it appears to run this test I should use a Makevars file with
> one of the following two flags depending on my compiler:
> FCFLAGS = -g -O2 -mtune=native -fbounds-check
> FFLAGS = -g -O2 -mtune=native -fbounds-check
>
> and store it in the src subdirectory of my package.  I've tried this using

It does not say that.

> each of the above in a Makevars file.  It's not giving me the information on
> where my code is failing the array bounds check and no warnings about
> problems with my Makevars file.  I'm using R 3.0.1 I downloaded Rtools.exe
> to match this version of R I'm on windows 64 bit.
> I'm using R cmd check package.name from the command prompt which clearly
> checks my package but the Makevars file doesn't seem to change anything.
> I'd appreciate any information on what I need to do to run this test

See the 'Writing R Extensions' manual §4.3.4.

> Thanks.
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-get-R-cmd-to-check-Fortran-array-bounds-tp4675727.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>


-- 
Brian D. Ripley,                  ripley at 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



More information about the R-devel mailing list