[R] Error when checking a package.

Duncan Murdoch murdoch at stats.uwo.ca
Tue Mar 30 12:53:32 CEST 2010


On 30/03/2010 1:59 AM, Jim Lemon wrote:
> On 03/30/2010 04:39 PM, Dong H. Oh wrote:
>> ...
>> * checking R code for possible problems ... NOTE
>> Found possibly global 'T' or 'F' in the following function:
>>    ar.dual.dea
> 
>> Error in ar.dual.dea(ar.dat, noutput = 1, orientation = 1, rts = 1, ar.l =
>> matrix(c(0,  :
>>    F used instead of FALSE
>> Execution halted
> 
> Hi Dong-hyun,
> It looks like the R core team is getting serious about the TRUE/FALSE 
> business. I would suggest that you replace all occurrences of "T" or "F" 
> in your code with "TRUE" and "FALSE" respectively and see what happens.

That test has been around at least since 2003:  it applies in package 
testing, not to people typing in the console.

Duncan Murdoch



More information about the R-help mailing list