[Rd] reg-tests-1.R failure with unstable

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Oct 25 11:32:53 CET 2009


Hiroyuki Kawakatsu wrote:
> On Fri, Oct 23, 2009, Hiroyuki Kawakatsu wrote:
>> Hi,
>>
>> I am getting an error from one of the test files
>> tests/reg-tests-1.R using the unstable version (r50179).
>> (i've learned my lessons; this is a clean build.) The tail
>> of reg-tests-1.Rout.fail is
>>
>> Loading required package: myTst
>> building package pkgA ...
>> installing package pkgA using file pkgA_1.0.tar.gz ...
>> Error in as.octmode(mode) : invalid digits
>> Error in install.packages(r, lib = "myLib", repos = NULL, type = "source") :
>>  (converted from warning) installation of package 'pkgA_1.0.tar.gz'
>> had non-zero exit status
>> Execution halted
> [...]
> 
> I think I have tracked this down to the following line in utils:::untar2()
>         mode <- rawToChar(block[101:107])
> mode contains a trailing space as in "000755 " which causes the invalid
> digits error in as.octmode(). If I change the line to
>         mode <- rawToChar(block[101:106])
> untar2("pkgA_1.0.tar.gz") unpacks the test package but I, of course,
> do not know whether this is a general fix.
> 
> Am I the only one seeing this problem (FreeBSD 9.0-CURRENT)?
> 
> h.

But where does the as.octmode come from?? Conversions inside untar2 
appear to be using getOct which explicitly handles spaces.

The current SVN does run reg-tests-1.R for me. (It breaks on 
reg-tests-3.R, but that's a different issue.)




-- 
    O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-devel mailing list