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
I'm trying to use the new shapeGrob export on the "experiment-rounded-rect" branch of hughjonesd/ggmagnify. I ran into an error, which I now can't reproduce, like this:
corners is passed into the radius argument to shapeGrob.
This did give the error:
Errorinp$x:$operatorisinvalidforatomicvectors
though now it seems to be ok :-/
Anyway, it seemed to happen when the radius and expand variables in makeContent.shape evaluated to 0 via the code in convertWidth (perhaps because of a small viewport?) If so, then the various polyoffset functions in makeContent.shape aren't called, and then the polygons variable ends up not set up correctly for some reason.
I'm sorry, this isn't a very useful bug report! But you might be able to understand what's happened better than me and work out a test case for this code path.
The text was updated successfully, but these errors were encountered:
While there may be an issue buried somewhere in there I'm unsure whether the shapeGrob is the right tool for it. Any reason why you aren't using the grid::roundrectGrob?
I'm trying to use the new shapeGrob export on the "experiment-rounded-rect" branch of hughjonesd/ggmagnify. I ran into an error, which I now can't reproduce, like this:
corners
is passed into theradius
argument toshapeGrob
.This did give the error:
though now it seems to be ok :-/
Anyway, it seemed to happen when the
radius
andexpand
variables inmakeContent.shape
evaluated to 0 via the code inconvertWidth
(perhaps because of a small viewport?) If so, then the variouspolyoffset
functions inmakeContent.shape
aren't called, and then thepolygons
variable ends up not set up correctly for some reason.I'm sorry, this isn't a very useful bug report! But you might be able to understand what's happened better than me and work out a test case for this code path.
The text was updated successfully, but these errors were encountered: