Skip to content

Error in gzfile(file, mode) when checking a package with rcmd check

8 messages · Uwe Ligges, Milan Bouchet-Valat, Patrick Giraudoux +2 more

#
Following Uwe Ligges' instructions (off list) I have updated Duncan 
Murdoch's toolchain, with no effect. The trouble was solved when I moved 
the package to a directory with a shorter path (U:\Documents and 
Settings\pgiraudo\Bureau instead of U:\Documents and 
Settings\pgiraudo\Mes documents\R\pgir_arch\pgirmess_arch\On work) and 
then things went trough smoothly.

What puzzles me is that the "long" path did not make a problem until R 
2.13.1 (this is the directory in which I worked since years for package 
development) and that something seems to have happened after upgrading 
to R 2.13.2

Anyway. The main thing: I have a way to package now.

Patrick







Le 16/10/2011 17:54, Joshua Wiley a ?crit :
#
On 06.11.2011 18:46, Patrick Giraudoux wrote:
It is really "Mes documents" or just what Microsoft translates this way 
in the Windows Explorer? It may help to use the correct names then.

Anyway, I have seen another problem where non ASCII characters matter 
and will digg...

Best,
Uwe Ligges
#
Le 06/11/2011 18:57, Uwe Ligges a ?crit :
Looks like being "Mes documents" although I don't know how to check if 
it is translated or not on the system level. Actually the French 
translation of the English original "My Documents".

However I have tried moving the folder pgirmess one level up to

U:\Documents and Settings\pgiraudo\Bureau instead of U:\Documents and 
Settings\pgiraudo\Mes documents\R\pgir_arch\pgirmess_arch\

and then running rcmd check..... and.... it works (tried twice, both 
OK). Means "Mes documents" seems not to be the real cause, but the "On 
Work" directory. However, replacing "On Work" by "On_work" gives a 
failure as before. Conclusion: looks like if the "space" character is 
not the problem, but the length of the path or the number of embedded 
directories (?).

Patrick
#
Le dimanche 06 novembre 2011 ? 19:31 +0100, Patrick Giraudoux a ?crit :
Is "On Work" the actual name, or a translation? Accentuated characters
are often the cause of bugs in filenames.


Cheers
#
Le 06/11/2011 19:47, Milan Bouchet-Valat a ?crit :
Yes. There is no accent just a space as in "Documents and settings" or 
"My Documents" or "Mes documents". To check if there was really a 
'space' problem, I have renamed "On Work" to "On_work" (with no space), 
and rcmd check does not work better.

Rcmd check works fine only when the pgirmess folder is moved one 
directory up (so still on a path that still have 'space' in directory 
names, e.g. "Documents and Settings" and "Mes documents".

Quite strange.
#
On 11-11-06 1:59 PM, Patrick Giraudoux wrote:
Windows historically had quite a short limit on pathnames (something 
like 260 characters, or bytes), and also on command lines.  I don't know 
what the current limits are, but R has the 260 limit coded into it, and 
likely some of our other tools do too.  Your paths don't approach that 
limit, but once you put several copies of them into one command line, 
you would.  I suspect that's what is catching you.

Duncan Murdoch
#
On Sun, Nov 6, 2011 at 11:27 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
The below page with references explains that issue further:

 http://aroma-project.org/howtos/UseLongFilenamesOnWindows

/Henrik