| Line 9... |
Line 9... |
| 9 |
\description{
|
9 |
\description{
|
| 10 |
Generate \file{PACKAGES}, \file{PACKAGES.gz} and \file{PACKAGES.rds}
|
10 |
Generate \file{PACKAGES}, \file{PACKAGES.gz} and \file{PACKAGES.rds}
|
| 11 |
files for a repository of source or Mac/Windows binary packages.
|
11 |
files for a repository of source or Mac/Windows binary packages.
|
| 12 |
}
|
12 |
}
|
| 13 |
\usage{
|
13 |
\usage{
|
| 14 |
write_PACKAGES(dir = ".", fields = NULL,
|
14 |
write_PACKAGES(dir = ".", fields = NULL, type,
|
| 15 |
type = c("source", "mac.binary", "win.binary"),
|
- |
|
| 16 |
verbose = FALSE, unpacked = FALSE, subdirs = FALSE,
|
15 |
verbose = FALSE, unpacked = FALSE, subdirs = FALSE,
|
| 17 |
latestOnly = TRUE, addFiles = FALSE, rds_compress = "xz",
|
16 |
latestOnly = TRUE, addFiles = grepl("binary", type),
|
| 18 |
validate = FALSE)
|
17 |
rds_compress = "xz", validate = FALSE)
|
| 19 |
}
|
18 |
}
|
| 20 |
\arguments{
|
19 |
\arguments{
|
| 21 |
\item{dir}{Character vector describing the location of the repository
|
20 |
\item{dir}{Character vector describing the location of the repository
|
| 22 |
(directory including source or binary packages) to generate the
|
21 |
(directory including source or binary packages) to generate the
|
| 23 |
\file{PACKAGES}, \file{PACKAGES.gz} and \file{PACKAGES.rds} files
|
22 |
\file{PACKAGES}, \file{PACKAGES.gz} and \file{PACKAGES.rds} files
|
| Line 38... |
Line 37... |
| 38 |
the file name in field \code{"File"} if \code{addFile = TRUE}
|
37 |
the file name in field \code{"File"} if \code{addFile = TRUE}
|
| 39 |
and the path to the subdirectory in field \code{"Path"} if subdirectories
|
38 |
and the path to the subdirectory in field \code{"Path"} if subdirectories
|
| 40 |
are used.
|
39 |
are used.
|
| 41 |
}
|
40 |
}
|
| 42 |
\item{type}{
|
41 |
\item{type}{
|
| - |
|
42 |
Type of packages. It can be either \code{"source"} or the name of
|
| - |
|
43 |
the binary type (e.g., \code{"win.binary"} or
|
| - |
|
44 |
\code{"mac.binary.big-sur-x86_64"}). In addition, the value
|
| - |
|
45 |
\code{"binary"} corresponds to default binary type for this R build
|
| - |
|
46 |
(see \code{.Platform$pkgType}).
|
| - |
|
47 |
In R versions before 4.6.0 this argument was partially matched to
|
| - |
|
48 |
the choices \code{"source"}, \code{"mac.binary"} and \code{"win.binary"}
|
| - |
|
49 |
which is still honored, but the partial matching is now deprecated
|
| - |
|
50 |
to better support other binary types.
|
| 43 |
Type of packages: currently source \file{.tar.\{gz,bz2,xz,zstd\}} archives,
|
51 |
Currently, source and custom binary \file{.tar.\{gz,bz2,xz,zstd\}}
|
| 44 |
and macOS or Windows binary (\file{.tgz} or \file{.zip},
|
52 |
archives, legacy macOS or Windows binary (\file{.tgz} or
|
| 45 |
respectively) packages are supported. Defaults to
|
53 |
\file{.zip}, respectively) packages are supported. Defaults to
|
| 46 |
\code{"win.binary"} on Windows and to \code{"source"} otherwise.
|
54 |
\code{"win.binary"} on Windows and to \code{"source"} otherwise.
|
| 47 |
}
|
55 |
}
|
| 48 |
\item{verbose}{logical. Should packages be listed as they are
|
56 |
\item{verbose}{logical. Should packages be listed as they are
|
| 49 |
processed?}
|
57 |
processed?}
|
| 50 |
\item{unpacked}{a logical indicating whether the package contents are
|
58 |
\item{unpacked}{a logical indicating whether the package contents are
|