A tool, grammar, and standard to represent and exchange R package source code as text files. Converts one or more source packages to a text file and restores the package structures from the file.
vignette("pkglite")
.vignette("filespec")
.vignette("filecollection")
.vignette("format")
.You can install the package via CRAN:
install.packages("pkglite")
Or, install from GitHub:
::install_github("Merck/pkglite") remotes
library("pkglite")
Pack one R package:
"/path/to/package/" %>%
collate(file_default()) %>%
pack()
Pack multiple R packages:
pack(
"/path/to/pkg1/" %>% collate(file_default()),
"/path/to/pkg2/" %>% collate(file_default()),
output = "/path/to/pkglite.txt"
)
Unpack one or more packages:
"/path/to/pkglite.txt" %>%
unpack(output = "/path/to/output/")