From murdoch.duncan at gmail.com  Sat Oct 15 14:50:04 2011
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Sat, 15 Oct 2011 08:50:04 -0400
Subject: [Rd] Creating a package skeleton with no flesh
In-Reply-To: <4E98CAFB.6030109@fhcrc.org>
References: <4E98CAFB.6030109@fhcrc.org>
Message-ID: <4E99817C.3060406@gmail.com>

On 14/10/2011 7:51 PM, Herv? Pag?s wrote:
> Hi,
>
> Wouldn't it be awesome if package.skeleton() could be used to
> produce, well... a package skeleton? In a fresh R session:

Empty packages are almost identical, differing only in the name entry in 
the DESCRIPTION file.  So why not do this once manually, and just copy 
it into place the next time you need one?  Why do you ask other people 
to do work that is trivial for you to do?

Duncan Murdoch

>     >  package.skeleton("mypkg")
>     Error in !have : invalid argument type
>
> This (not very informative) error message seems to occur because
> I'm trying to create a skeleton with no flesh on it:
>
>     >  foo<- function() {}
>     >  package.skeleton("mypkg")
>     Creating directories ...
>     Creating DESCRIPTION ...
>     Creating NAMESPACE ...
>     Creating Read-and-delete-me ...
>     Saving functions and data ...
>     Making help files ...
>     Done.
>     Further steps are described in './mypkg/Read-and-delete-me'.
>
> A package with nothing defined in it is still a valid package.
>
> Thanks,
> H.
>



[Rd] Creating a package skeleton with no flesh
Duncan Murdoch