\HeaderA{makeDataPackage}{Make an R package from a data object}{makeDataPackage}
\aliasA{makeDataPackage,ANY-method}{makeDataPackage}{makeDataPackage,ANY.Rdash.method}
\keyword{manip}{makeDataPackage}
\begin{Description}\relax
This generic creates a valid R package from an R data object.
\end{Description}
\begin{Usage}
\begin{verbatim}
makeDataPackage(object, author, email,
                packageName=deparse(substitute(object)),
                packageVersion=package_version("1.0.0"),
                license="Artistic-2.0",
                biocViews="ExperimentData",
                filePath=tempdir(),
                ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] An instance of an R data object.
\item[\code{author}] The author, as a character string.
\item[\code{email}] A valid email address for the maintainer, as a character string.
\item[\code{packageName}] The name of the package, defaults to the name of the object instance.
\item[\code{packageVersion}] The version number, as a character string.
\item[\code{license}] The license, as a character string.
\item[\code{biocViews}] A character vector of valid biocViews views.
\item[\code{filePath}] The location to create the package.
\item[\code{...}] Additional arguments to specific methods.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The function makes use of various tools in R and Bioconductor to automatically
generate the source files for a valid R package.
\end{Details}
\begin{Value}
The return value is that from a call to \code{link\{createPackage\}} which
is invoked once the default arguments are set up. The data instance
is stored in the data directory with a name the same as that of the
resulting package.
\end{Value}
\begin{Note}\relax
Developers implementing derived methods might force correct
package name evaluation by including 'packageName' in any
\code{callNextMethod()}.
\end{Note}
\begin{Author}\relax
R. Gentleman
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{createPackage}{createPackage}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
 data(sample.ExpressionSet)
 ## package created in tempdir()
 s1 <- makeDataPackage(sample.ExpressionSet,
                       author = "Foo Author",
                       email = "foo@bar",
                       packageName = "FooBarPkg",
                       packageVersion = "1.0.0")
\end{ExampleCode}
\end{Examples}

