Skip to contents

Converts a pkg_index into a character matrix suitable for base::write.dcf(). Empty strings are turned into NA so missing fields are omitted in DCF.

Usage

pkg_index_to_dcf(x)

Arguments

x

A pkg_index.

Value

A character matrix (columns = canonical fields).

Examples

x <- as_pkg_index(data.frame(Package="foo", Version="1.0"))
dcf <- pkg_index_to_dcf(x)