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.
Examples
x <- as_pkg_index(data.frame(Package="foo", Version="1.0"))
dcf <- pkg_index_to_dcf(x)
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.
x <- as_pkg_index(data.frame(Package="foo", Version="1.0"))
dcf <- pkg_index_to_dcf(x)