pkglite
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.
- To get started, see
vignette("pkglite"). - To create file specifications, see
vignette("filespec"). - The text file format is described in
vignette("format").
Installation
You can install the package via CRAN:
install.packages("pkglite")Or, install from GitHub:
remotes::install_github("Merck/pkglite")Workflow
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/")