From Thierry.ONKELINX at inbo.be  Wed Apr 25 10:58:42 2012
From: Thierry.ONKELINX at inbo.be (ONKELINX, Thierry)
Date: Wed, 25 Apr 2012 08:58:42 +0000
Subject: [Rd] Strange bug in my package
Message-ID: <AA818EAD2576BC488B4F623941DA742757366F54@inbomail.inbo.be>

Dear all,

I get a bug in the examples of my AFLP package on R-forge (https://r-forge.r-project.org/R/?group_id=1027) but only on the Linux version. The windows version compiles. The Mac version skips the examples and compiles. The strange thing is that the packages compiles on my Ubuntu 10.10 machine with R 2.15.0. Therefore I can't reproduce the error.

I have traced the problem at
residuals(outliers(data))

outliers(data) gives an AFLP.outlier object (S4) and I have defined

setMethod("residuals", signature(object = "AFLP.outlier"),
        function(object, ...){
                object at Residual
        }
)

setMethod("resid", signature(object = "AFLP.outlier"),
        function(object, ...){
                object at Residual
        }

And the NAMESPACE is

importFrom(stats, hclust, princomp, residuals, resid)
exportPattern(".")

Any suggestions are welcome.

Best regards,

Thierry

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium
+ 32 2 525 02 51
+ 32 54 43 61 85
Thierry.Onkelinx at inbo.be
www.inbo.be

To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey


* * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * *
Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document.
The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document.



[Rd] Strange bug in my package
ONKELINX, Thierry