问题
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
来源:https://stackoverflow.com/questions/64368087/how-do-i-set-shiny-app-size-in-rstudio-windowed-mode