Le 06/11/2011 20:57, Henrik Bengtsson a écrit :
> On Sun, Nov 6, 2011 at 11:27 AM, Duncan Murdoch
> <murdoch.duncan@gmail.com>  wrote:
>> On 11-11-06 1:59 PM, Patrick Giraudoux wrote:
>>> Le 06/11/2011 19:47, Milan Bouchet-Valat a écrit :
>>>> Le dimanche 06 novembre 2011 à 19:31 +0100, Patrick Giraudoux a écrit :
>>>>> 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 (?).
>>>> Is "On Work" the actual name, or a translation? Accentuated characters
>>>> are often the cause of bugs in filenames.
>>>>
>>>>
>>>> Cheers
>>>>
>>> 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.
>> 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.
> The below page with references explains that issue further:
>
>   http://aroma-project.org/howtos/UseLongFilenamesOnWindows
>
> /Henrik
>
>


Thanks both. Clear enough.

The path has actually only 82 characters. 'U:\Documents and 
Settings\pgiraudo\Mes documents\R\pgir_arch\pgirmess_arch\On work'.

The error comes running rcmd check within this path (wich is considered 
the log path: * using log directory 'U:/Documents and 
Settings/pgiraudo/Mes  documents/R/pgir_arch/pgirmess_arch/On 
work/pgirmess.Rcheck') at the "checking whether package 'pgirmess' can 
be installed ..." stage. There a a very long path of 266 characters 
indeed, generated by R cmd check (see log file below)

'U:\DOCUME~1\Admin\LOCALS~1\Temp\RtmpwWcmem/libloc_U%3a%2fDocuments%20and%20Settings%2fpgiraudo%2fMes%20documents%2fR%2fpgir_arch%2fpgirmess_arch%2fOn%20work%2fpgirmess.RcheckVersion,Priority,Depends,Imports,LinkingTo,Suggests,Enhances,OS_type,License,Archs,Built.rds'

What surprises me is this never happened for years before I update from 
R  2.13.1 to R 2.13.2. This "long" path of 82 characters, exactly as it 
is, made no problem for years until I update.

Are you aware of some change in the R cmd check code or other that could 
have led to this ?

Best,

Patrick





rcmd check pgirmess

* using log directory 'U:/Documents and Settings/pgiraudo/Mes
documents/R/pgir_arch/pgirmess_arch/On work/pgirmess.Rcheck'
* using R version 2.13.2 (2011-09-30)
* using platform: i386-pc-mingw32 (32-bit)
* using session charset: ISO8859-1
* checking for file 'pgirmess/DESCRIPTION' ... OK
* this is package 'pgirmess' version '1.5.2'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking for .dll and .exe files ... OK
* checking whether package 'pgirmess' can be installed ... ERROR
Installation failed.
See 'U:/Documents and Settings/pgiraudo/Mes
documents/R/pgir_arch/pgirmess_arch/On work/pgirmess.Rcheck/00install.out'
for details.


In '00install.out',  I get:

* installing *source* package 'pgirmess' ...
** R
** data
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded Error in gzfile(file, mode)
: cannot open the connection
Calls: %in% ->  match ->  installed.packages ->  saveRDS ->  gzfile
In addition: Warning message:
In gzfile(file, mode) :
   cannot open compressed file
'U:\DOCUME~1\Admin\LOCALS~1\Temp\RtmpwWcmem/libloc_U%3a%2fDocuments%20and%20Settings%2fpgiraudo%2fMes%20documents%2fR%2fpgir_arch%2fpgirmess_arch%2fOn%20work%2fpgirmess.RcheckVersion,Priority,Depends,Imports,LinkingTo,Suggests,Enhances,OS_type,License,Archs,Built.rds', 

probable reason 'No such file or directory'
Execution halted
ERROR: loading failed
* removing
'U:/DOCUME~1/pgiraudo/MESDOC~1/R/PGIR_A~1/PGIRME~1/ONWORK~1/PGIRME~1.RCH/pgirmess' 



	[[alternative HTML version deleted]]

