-
Hi there, I am wondering where to put the following code in my golem app? Publishing to RStudio Connect.
The shiny caching documentation says to put this at the top of your app.R, server.R, or global.R. I currently have it at the top of my app_server.R file (outside of my app_server function) and that works but it just seems clunky and out of place. Everything else seems to have a place in golem. Any advice would be appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, There are several ways to do that, and they depend on how you want to deploy your app:
I generally go for setting the options in run_dev.R then in app.R / in the Dockerfile, because it allows me to set different options in dev and prod. |
Beta Was this translation helpful? Give feedback.
Hey,
There are several ways to do that, and they depend on how you want to deploy your app:
I generally go…