I have a Shiny QMD Dashboard that runs locally and I'd like to deploy to shinyapps.io, where I have a paid account. I want to deploy only the datasets used in the dashboard, not all of the data in the project directory.
In past deployments with a Shiny-enabled Flexdashboard I would be able to select and de-select files in the deployment interface on RStudio. I also could manually specify required files in the YAML header under resource_files.
Currently, when attempting to deploy my dashboard in the latest version of RStudio, the publish UI where I would normally select/deselect files, flashes briefly, then I see the error screen below:
The console includes an error with the following:
Error in `enforceBundleLimits()`:
! `appDir` (C:/Users/Project/File/Pathway) is too large to be deployed.
✖ The maximum size is 3145728000 bytes.
✖ This directory is at least 3470598458 bytes.
ℹ Remove some files or adjust the rsconnect.max.bundle.size option.
Run `rlang::last_trace()` to see where the error occurred.
I do not want to deploy the entire contents of this file pathway, but the UI does not give me the opportunity to select specific files. I updated my RStudio Pro, in case this had been addressed and have the most recent version.
My QMD setup code block includes the following code to update my rsconnect max bundle size:
options(rsconnect.max.bundle.size=5 * 10^9)
> sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22631)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C LC_TIME=English_United States.utf8
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] digest_0.6.31 R6_2.5.1 jsonlite_1.8.4 lifecycle_1.0.3 evaluate_0.21 cachem_1.0.8 rlang_1.1.1
[8] cli_3.6.1 renv_1.1.4 rstudioapi_0.14 jquerylib_0.1.4 bslib_0.4.2 rmarkdown_2.22 tools_4.2.1
[15] xfun_0.39 yaml_2.3.7 rsconnect_1.5.0 fastmap_1.1.1 compiler_4.2.1 htmltools_0.5.5 knitr_1.43
[22] sass_0.4.6