inst/dev/packer.R

#' Bundle for Prod
#' 
#' Bundles packer using packer.
packer_bundle <- function(){
	has_packer <- requireNamespace("packer", quietly = TRUE)

	if(!has_packer){
		warning(
			"Requires `packer` package: `install.packages('packer')`\n", 
			"Skipping.",
			call. = FALSE
		)
		return()
	}

	packer::bundle()
}

packer_bundle()

Try the leprechaun package in your browser

Any scripts or data that you put into this service are public.

leprechaun documentation built on Jan. 19, 2022, 5:08 p.m.