prepare and build a package tarball, not exported because we use build1_with_buildsink to capture log

build1(srcpath, dest = ".", ...)

Arguments

srcpath

character(1) path to source folder for a package

dest

character(1) destination folder

...

pass to pkgbuild::build

Note

If preparation for building triggers a try-error, the resulting exception object is returned. Otherwise the result of pkgbuild::build() is returned.