How do I set shiny app size in RStudio windowed mode?

Viewed 381

I was wondering, if there is a way to start a shinyapp in RStudio in window mode with prespecified window size. I found a workaround via creating a new file with following code:

{library(shiny)
vwr = dialogViewer('modellvergleiche-irt-with-brms', width = 1600, height = 1200)
runGadget(shinyAppDir(appDir = '../modellvergleiche-irt-with-brms'), viewer = vwr)
} # Run app in presized window

But I find it pritty ugly (especially the appDir = '../modellvergleiche-irt-with-brms' part). Is there a better way to implement this? Maybe even a build in setting in RStudio I did not find yet?

Sincerely Famondir

0 Answers
Related