Dear developers,
In grid::gpar(), graphic parameters are not allowed to have length 0, but this
can be done by first creating a gpar object and later modifying it:
gp = gpar(fontsize = 10)
gp$fontsize = numeric(0)
when a grob has a gp where some parameters have length 0, converting the
Hi,
I found in grid package, if the graphic parameters have zero length, R crashes.
In the
following code, I only tested `grid.rect()` and the `fill` parameter, but I
think it should
be similar as other grid graphic functions.
In `gpar()` function, the graphic parameters are not allowed to
Hi,
In grid 4.0, adding two complex units by `sum()` seems to give wrong results.
In the following example, `u1 + u2` gives the correct result, but `sum(u1, u2)`
also `sum(unit.c(u1, u2))` give the wrong results.
```
library(grid)
u1 = 0.4*sum(unit(1, "inch"), unit(1, "mm"))
u2 =