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

Hiroyuki Kawakatsu hiroyuki.kawakatsu at dcu.ie
Sun Oct 25 12:31:19 CET 2009


On Sun, Oct 25, 2009 at 10:32 AM, Peter Dalgaard wrote:
[...]
>>
>> 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??

from Sys.chmod(name, mode) further down in untar2().

> Conversions inside untar2 appear
> to be using getOct which explicitly handles spaces.

but 'mode' is never touched between the assignment and the
call in Sys.chmod().

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

hmmm. I still don't understand what might be specific to my OS.

h.
-- 
+---
| Hiroyuki Kawakatsu
| Business School, Dublin City University
| Dublin 9, Ireland. Tel +353 (0)1 700 7496



More information about the R-devel mailing list