Rev 27442 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{package.skeleton}\alias{package.skeleton}\title{Create a skeleton for a new package}\description{\code{package.skeleton} automates some of the setup for a newpackage. It creates directories, saves functions and data toappropriate places, and creates skeleton help files and \file{README}files describing further steps in packaging.}\usage{package.skeleton(name = "anRpackage", list, environment = .GlobalEnv,path = ".", force = FALSE)}\arguments{\item{name}{character string: the directory name for your package.}\item{list}{character vector naming the R objects to put in the package}\item{environment}{if \code{list} is omitted, the contents of thisenvironment are packaged.}\item{path}{path to put the package directories in.}\item{force}{If \code{FALSE} will not overwrite an existing directory.}}\value{used for its side-effects.}\details{This tries to create filenames valid for all OSes known to run R.Invalid characters are replaced by \code{_}, invalid names arepreceeded by \code{zz}, and finally the converted names are madeunique by \code{\link{make.unique}(sep = "_")}. This can be done forcode and help files but not data files (which are looked for by name).}\references{Read the \emph{Writing R Extensions} manual for more details }\seealso{\code{\link{prompt}}, \code{\link{install.packages}}}\examples{\dontrun{f <- function(x,y) x+yg <- function(x,y) x-yd <- data.frame(a=1,b=2)e <- rnorm(1000)package.skeleton(list=c("f","g","d","e"), name="AnExample")}}\keyword{file}\keyword{utilities}