![]() you can use internal data of any kind in your package.įor the last one instead of declaring global variables (not a good practice anyways) you may pass paramaters to the runShinyPackageApp function which can pass them on to the server and ui, for example: runShinyPackageApp all functions within package are automatically available to other functions,.You can import packages package-wide or for specific functions,.The first three points are in fact easier and cleaner in a package. define values which may change between launches of the app.define project-wide constants or load data used in ui,.Eventually trigger waiterhide to hide the loading screen. Trigger waitershow to show the waiting screen. To use the waiter: Include useWaiter in your UI. ![]() (The onStart param is related but different.) I generally use global.R for the following things: shiny Easily build rich and productive interactive web apps in R no HTML/CSS/JavaScript required. Below are simple examples of applications that use the package, consult the website for more. One significant difference between the two methods to run a shiny app is the use of the global.R file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |