\Header{package.skeleton}{Create a skeleton for a new package}
\keyword{file}{package.skeleton}
\keyword{utilities}{package.skeleton}
\begin{Description}\relax
\code{package.skeleton} automates some of the setup for a new
package. It creates directories, saves functions and data to appropriate
places, and creates skeleton help files and \code{README} files
describing further steps in packaging.\end{Description}
\begin{Usage}
\begin{verbatim}
package.skeleton(name="anRpackage", list, environment=.GlobalEnv, 
        path=".", force=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{name}] directory name for your package
\item[\code{list}] vector of names of R objects to put in the package
\item[\code{environment}] if \code{list} is omitted, the contents of this
environment are packaged
\item[\code{path}] path to put the package directories in
\item[\code{force}] If \code{FALSE} will not overwrite an existing directory
\end{ldescription}
\end{Arguments}
\begin{Value}
used for its side-effects.\end{Value}
\begin{References}\relax
Read the "Writing R Extensions" manual for more details\end{References}
\begin{SeeAlso}\relax
\code{\Link{install.packages}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

    f<-function(x,y) x+y
    g<-function(x,y) x-y
    d<-data.frame(a=1,b=2)
    e<-rnorm(1000)
    package.skeleton(list=c("f","g","d","e"),name="AnExample")

\end{ExampleCode}
\end{Examples}

