Skip to content

Commit 1a17849

Browse files
committed
protection against vectorised input
1 parent 177d1fa commit 1a17849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/grob-dotstack.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dotstackGrob <- function(
1414
y <- unit(y, default.units)
1515
if (!is.unit(dotdia))
1616
dotdia <- unit(dotdia, default.units)
17-
if (!unitType(dotdia) == "npc")
17+
if (!isTRUE(unitType(dotdia) == "npc"))
1818
cli::cli_warn("Unit type of dotdia should be {.val npc}")
1919

2020
grob(x = x, y = y, stackaxis = stackaxis, dotdia = dotdia,

0 commit comments

Comments
 (0)