Writes the given pkg_index to PACKAGES.rds (source of truth)
and, optionally, to plain PACKAGES and PACKAGES.gz (courtesy outputs).
Arguments
- x
A
pkg_index.- dir
Target directory (e.g.,
src/contrib).- rds_compress
Compression method passed to
saveRDS()(default"xz").- write_plain
Write plain
PACKAGESviawrite.dcf()(defaultTRUE).- write_gz
Write
PACKAGES.gz(defaultTRUE).
Examples
if (FALSE) { # \dontrun{
idx <- as_pkg_index(data.frame(Package="foo", Version="1.0"))
pkg_index_write(idx, tempdir())
} # }