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