From cgenolin at u-paris10.fr  Tue Jul 15 22:20:37 2008
From: cgenolin at u-paris10.fr (Christophe Genolini)
Date: Tue, 15 Jul 2008 22:20:37 +0200
Subject: [Rd] package.skeleton does invalide regular name...
In-Reply-To: <487CE6A6.3000209@stats.uwo.ca>
References: <20080715193333.7bc7tlovsw0gg0kg@icare.u-paris10.fr>
	<487CE6A6.3000209@stats.uwo.ca>
Message-ID: <487D0695.8010408@u-paris10.fr>

By the way, will it be a big change to allow the user to give the name 
of a directories instead of a file ? The following code :
code_file=c("dir1\file1.r","dir1\file2.r","dir1\file3.r")

willl become :

code_file=c("dir1\")

Then, reconizing that dir1\ is a directories, skeleton.package will 
include all the file that are in the directorie ?

Christophe


> On 7/15/2008 1:33 PM, cgenolin at u-paris10.fr wrote:
>> Hi the list,
>>
>> I am using package.skeleton on a file that has a very classic name, 
>> but package.skeleton detect it as a invalid name :
>>
>> --- 8< -------
>> package.skeleton(name="packClassicBis",code_files="./packClassic/R/progClassic.R") 
>>
>>
>> Cr?ation des r?pertoires...
>> Cr?ation de DESCRIPTION...
>> Cr?ation de 'Read-and-delete-me'...
>> Recopiage des fichiers de code...
>> Cr?ation des fichiers d'aide ...
>> Termin?.
>> Les ?tapes suivantes sont d?crites dans 
>> './packClassic4/Read-and-delete-me'.
>> Warning message:
>> In package.skeleton(name = "packClassic4", code_files = 
>> "./packClassic/R/progClassic.R") :
>>   Nom(s) de fichier(s) invalide(s) pour du code R ./packClassic4/R:
>>   'progClassic.R'
>> sont maintenant renomm?s vers 'z<nom>.R'
>> --- 8< -------
>>
>> It create the file "zprogClassic.R" in directorie "packClassicBis\R"
>> Is there something wrong in my code or is it a bug in package.skeleton ?
>
>
> I think you're right, it's a bug.  package.skeleton assumes that 
> code_files lists files in the current directory, and will give that 
> warning if they are given with qualified paths.
>
> It should be easy to fix; I'll take a look.  Thanks for the report.
>
> Duncan Murdoch
>



[Rd] package.skeleton does invalide regular name...
Christophe Genolini