\HeaderA{genRepos}{A function to create a repository}{genRepos}
\aliasA{addOsSpecific}{genRepos}{addOsSpecific}
\aliasA{buildPkgDf}{genRepos}{buildPkgDf}
\aliasA{buildVigDf}{genRepos}{buildVigDf}
\aliasA{genPkgRepos}{genRepos}{genPkgRepos}
\aliasA{genVigRepos}{genRepos}{genVigRepos}
\keyword{utilities}{genRepos}
\begin{Description}\relax
This functionality provides the user with the means to generate a
repository out of a set of files.
\end{Description}
\begin{Usage}
\begin{verbatim}
genRepos(repName, urlBase, urlPath, repType=c("package","vignette"),
         repRelLevel=c("release","devel"), dir = ".", HTML=TRUE, functionDesc=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{repName}] The name of the repository
\item[\code{urlBase}] A base URL for the repository (e.g. http://www.bioconductor.org/)
\item[\code{urlPath}] A path from the urlBase (e.g. packages/download/)
\item[\code{repType}] The type of repository, either package or vignette.
Defaults to package
\item[\code{repRelLevel}] The default release level for packages in this
repository.  Packages that don't have a \code{ReleaseLevel} field in
their \code{DESCRIPTION} file will be of this release level.  The
default is \code{release}.
\item[\code{dir}] The directory to create the repository in
\item[\code{HTML}] For package repositories, toggles HTML generation
\item[\code{functionDesc}] Whether or not to create an HTMLized version of Rdindex.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
For more detailed information, the user is directed to the vignette
file "HOWTO set up a simple R repository" in the \code{reposTools}
package.  To do this, you can use the \code{vignette} command in the
\code{annotate} package: vignette("HOWTO set up a simple R repository", package="reposTools").  

genRepos is passed basic information about the repository as well as
indicators as to what should be autogenerated or manually inputed, and
will create two files:  One file 'replisting', which contains a matrix
of repository information and the other 'repdatadesc.rda' which
contains a data.frame representing the files to be distributed.  These
two special files are accessed by client functions.

HTM generation uses the \code{\LinkA{genReposHTML}{genReposHTML}} function.
\end{Details}
\begin{Value}
genRepos returns a list containing basic information about the
repository generated.
\end{Value}
\begin{Author}\relax
Jeff Gentry
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{install.packages2}{install.packages2}},\code{\LinkA{ReposEntry}{ReposEntry}}, \code{\LinkA{genReposHTML}{genReposHTML}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
\end{ExampleCode}
\end{Examples}


