From hiroyuki.kawakatsu at dcu.ie  Sun Oct 25 12:31:19 2009
From: hiroyuki.kawakatsu at dcu.ie (Hiroyuki Kawakatsu)
Date: Sun, 25 Oct 2009 11:31:19 +0000
Subject: [Rd] reg-tests-1.R failure with unstable
In-Reply-To: <4AE42955.6060705@biostat.ku.dk>
References: <307b90470910230430o2724fd99j90a226315b7cfc25@mail.gmail.com>
	<307b90470910250233o1ff0934bl8a4ba7b673420c86@mail.gmail.com>
	<4AE42955.6060705@biostat.ku.dk>
Message-ID: <307b90470910250431q66b40942x74570bed7f1ff4cf@mail.gmail.com>

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



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