Defines a bundle from static files. It copies all files to a temporary directory, generates a basic manifest file (using the first file as the "primary"), and bundles the directory.
Usage
bundle_static(
path,
filename = fs::file_temp(pattern = "bundle", ext = ".tar.gz")
)
See also
Other deployment functions:
bundle_dir()
,
bundle_path()
,
deploy()
,
download_bundle()
,
poll_task()
Examples
bundle_static(system.file("logo.png", package = "connectapi"))
#> Bundling directory (/tmp/RtmpTCUGMi/bundledir22815ca408b6)
#> Posit Connect Bundle:
#> Path: /tmp/RtmpTCUGMi/bundle22815ba74835.tar.gz
#> Size: 23.9K
#>
#> bundle_path("/tmp/RtmpTCUGMi/bundle22815ba74835.tar.gz")
#>