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.
bundle_static(
path,
filename = fs::file_temp(pattern = "bundle", ext = ".tar.gz")
)
The path to a file (or files) that will be used for the static bundle
The output bundle path
Bundle A bundle object
NOTE: the rsconnect
package is required for this function to work properly.
Other deployment functions:
bundle_dir()
,
bundle_path()
,
deploy()
,
download_bundle()
,
poll_task()
bundle_static(system.file("logo.png", package = "connectapi"))
#> Bundling directory (/tmp/RtmpDnfBd8/bundledir44084673caee)
#> Posit Connect Bundle:
#> Path: /tmp/RtmpDnfBd8/bundle440815aa8be7.tar.gz
#> Size: 23.9K
#>
#> bundle_path("/tmp/RtmpDnfBd8/bundle440815aa8be7.tar.gz")
#>