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

ⅰ亾dé卋堺 提交于 2020-12-13 03:40:04

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!