- Many in Biostatistics at Merck have contributed to the development and testing of software!
- This presentation reflects the views of the author and does not represent a company position for Merck.
- All errors are the responsibility of the presenter.
March 5, 2021
pkglite is available at https://github.com/Merck/pkglite
Connect the verbs by pipes.
library("pkglite") "/path/to/pkg/" %>% collate(file_ectd()) %>% pack() pack( "/path/to/pkg1/" %>% collate(file_ectd()), "/path/to/pkg2/" %>% collate(file_ectd()), output = "/path/to/pkglite.txt" ) "/path/to/pkglite.txt" %>% unpack(output = "/path/to/output/")
File specifications offer flexibility and brevity in specifying the files to include.
|File specification type||Functions|
File collections contain the evaluation results of file specifications for packing.
library("pkglite") "/path/to/pkg" %>% collate(file_root_core(), file_r(), file_auto("inst/"))
Pkglite.txt follows the standard Debian Control File (DCF) format used by Debian, R, and RStudio IDE, to be both machine-readable and human-readable.
# Generated by pkglite: do not edit by hand # Use pkglite::unpack() to restore the packages Package: pkg1 File: DESCRIPTION Format: text Content: Package: pkg1 Type: Package Title: Example Package One Version: 0.1.0