Packages
Builder reads your R files from the srcr (default) directory and writes the output to the R (default) directory.
./builder -input srcr -output RThis allows building R packages from multiple, nested directories such as:
srcr
├── main.R
└── sub
└── main.RThat will produce:
R
├── main.R
└── sub-main.RNote that the file order is preserved, though it’s unlikely to matter in an R package.
Creating a Package
Use -create to scaffold a new R package with
builder support:
./builder -create mypackageThis creates:
mypackage
├── DESCRIPTION
├── .Rbuildignore
├── builder.ini
├── R/
└── srcr/Then navigate to the package and start building:
cd mypackage && builder