I Would like to determine the size of the browser window in Shiny to help me layout my plot divs better. Specifically I would like to determine the aspect ratio of the wind
Shorter version for getting window dimensions in shiny with JS from package htmlwidgets:
JS
htmlwidgets
window_height <- JS('window.innerHeight') window_width <- JS('window.innerWidth')