The R Project SVN R

Rev

Rev 32359 | Rev 35028 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32359 Rev 33254
Line 4... Line 4...
4
\description{
4
\description{
5
  Generating a \file{PACKAGES} file for a repository of source or
5
  Generating a \file{PACKAGES} file for a repository of source or
6
  Windows binary packages.
6
  Windows binary packages.
7
}
7
}
8
\usage{
8
\usage{
-
 
9
write_PACKAGES(dir, fields,
9
write_PACKAGES(dir, fields, type = c("source", "winBinary"), verbose = FALSE)
10
               type = c("source", "mac.binary", "win.binary"),
-
 
11
               verbose = FALSE)
10
}
12
}
11
\arguments{
13
\arguments{
12
  \item{dir}{
14
  \item{dir}{
13
    Character vector describing the location of the repository 
15
    Character vector describing the location of the repository 
14
    (directory including source or binary packages) to generate
16
    (directory including source or binary packages) to generate
Line 22... Line 24...
22
    \dQuote{Imports} and \dQuote{Contains}.
24
    \dQuote{Imports} and \dQuote{Contains}.
23
  }
25
  }
24
  \item{type}{
26
  \item{type}{
25
    Type of packages: currently source \code{.tar.gz} archives
27
    Type of packages: currently source \code{.tar.gz} archives
26
    and Windows binary \code{.zip} packages are supported.  Defaults to
28
    and Windows binary \code{.zip} packages are supported.  Defaults to
27
    \code{"winBinary"} on Windows and to \code{"source"} otherwise.
29
    \code{"win.binary"} on Windows and to \code{"source"} otherwise.
28
  }
30
  }
29
  \item{verbose}{logical. Should packages be listed as they are processed?}
31
  \item{verbose}{logical. Should packages be listed as they are processed?}
30
}
32
}
31
\details{
33
\details{
32
  \code{type = "winBinary"} uses \code{\link{unz}} connections to read all
34
  \code{type = "win.binary"} uses \code{\link{unz}} connections to read all
33
  \file{DESCRIPTION} files contained in the (zipped) binary packages for
35
  \file{DESCRIPTION} files contained in the (zipped) binary packages for
34
  Windows in the given directory \code{dir}, and builds a
36
  Windows in the given directory \code{dir}, and builds a
35
  \file{PACKAGES} file from these information.
37
  \file{PACKAGES} file from these information.
36
}
38
}
37
\value{
39
\value{
Line 55... Line 57...
55
  \file{DESCRIPTION} files and writing the \file{PACKAGES} file.
57
  \file{DESCRIPTION} files and writing the \file{PACKAGES} file.
56
}
58
}
57
\examples{
59
\examples{
58
\dontrun{
60
\dontrun{
59
write_PACKAGES("c:/myFolder/myRepository")  # on Windows
61
write_PACKAGES("c:/myFolder/myRepository")  # on Windows
60
write_PACKAGES("/pub/RWin/bin/windows/2.1", type="winBinary")  # on Linux
62
write_PACKAGES("/pub/RWin/bin/windows/contrib/2.1",
-
 
63
               type="win.binary")  # on Linux
61
}}
64
}}
62
\keyword{file}
65
\keyword{file}
63
\keyword{utilities}
66
\keyword{utilities}
64
 
67