You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shiny::renderCachedPlot throws "formal argument matched by multiple actual arguments" error when specifying height or width. The help page says that dots are passed to grDevices::png:
... Arguments to be passed through to png. These can be used to set the width, height, background color, etc.
In fact the dots are passed to shiny:::DrawPlot where height and width are specified from the sizePolicy argument. Thus following the docs as written leads to an error. While I expect the code represents the intended behavior, I would suggest improving the docs to explain that height or width cannot be specified in the same way as renderPlot, and possibly building in a warning that issues guidance about fixing the problem. To reproduce the behavior of renderPlot one must set sizePolicy with a growth rate of 1, e.g. sizeGrowthRatio(width = 400, height = 400, growthRate = 1).
shiny::renderCachedPlot
throws "formal argument matched by multiple actual arguments" error when specifyingheight
orwidth
. The help page says that dots are passed togrDevices::png
:In fact the dots are passed to
shiny:::DrawPlot
where height and width are specified from thesizePolicy
argument. Thus following the docs as written leads to an error. While I expect the code represents the intended behavior, I would suggest improving the docs to explain that height or width cannot be specified in the same way asrenderPlot
, and possibly building in a warning that issues guidance about fixing the problem. To reproduce the behavior ofrenderPlot
one must set sizePolicy with a growth rate of 1, e.g.sizeGrowthRatio(width = 400, height = 400, growthRate = 1)
.Created on 2020-07-27 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: