[Rd] Creating a package skeleton with no flesh

Hervé Pagès hpages at fhcrc.org
Sat Oct 15 01:51:23 CEST 2011


Hi,

Wouldn't it be awesome if package.skeleton() could be used to
produce, well... a package skeleton? In a fresh R session:

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

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



More information about the R-devel mailing list