[Rd] Creating a package skeleton with no flesh

Duncan Murdoch murdoch.duncan at gmail.com
Sat Oct 15 14:50:04 CEST 2011


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.
>



More information about the R-devel mailing list