app_size | R Documentation |
The size of shiny app is a sum of dependencies packages and the app directory. The app dependencies packages are checked recursively, and only in local repository. The default arguments setup is recommended.
app_size(
path = ".",
fields = c("Depends", "Imports", "LinkingTo"),
lib.loc = .libPaths(),
recursive = TRUE
)
path |
|
fields |
|
lib.loc |
|
recursive |
|
numeric
size in bytes, to get MB ten divide by 10**6
.
renv
package has to be installed. base
packages (pacs::pacs_base()
) are not taken into account.
## Not run:
library(renv)
# Please update the path to the shiny app
cat(pacs::app_size(system.file("examples/04_mpg", package = "shiny")) / 10**6, "MB")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.