Given a directory containing an application, returns the names of the files
to be bundled in the application.
Usage
listBundleFiles(appDir)
Arguments
appDir
Directory containing the application.
Value
Returns a list containing the following elements:
contents
A list of the files to be bundled
totalSize
The total size of the files
Details
This function computes results similar to a recursive directory
listing from list.files, with the following constraints:
If the total size of the files exceeds the maximum bundle size, no
more files are listed. The maximum bundle size is controlled by the
rsconnect.max.bundle.size option.
If the total size number of files exceeds the maximum number to be
bundled, no more files are listed. The maximum number of files in the
bundle is controlled by the rsconnect.max.bundle.files option.
Certain files and folders that don't need to be bundled, such as
those containing internal version control and RStudio state, are
excluded.