Running examples in ‘ggrepel-Ex.R’ failed
The error most likely occurred in:

> ### Name: geom_label_repel
> ### Title: Repulsive textual annotations.
> ### Aliases: geom_label_repel geom_text_repel
> 
> ### ** Examples
> 
> 
> p <- ggplot(mtcars,
+   aes(wt, mpg, label = rownames(mtcars), colour = factor(cyl))) +
+   geom_point()
> 
> # Avoid overlaps by repelling text labels
> p + geom_text_repel()
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
ggrepel
 --- call from context --- 
to_unit(box.padding)
 --- call from argument --- 
if (class(x) == "unit") {
    return(x)
}
 --- R stacktrace ---
where 1: to_unit(box.padding)
where 2: gTree(limits = limits, data = data, lab = lab, nudges = nudges, 
    box.padding = to_unit(box.padding), point.padding = to_unit(point.padding), 
    segment.colour = segment.colour, segment.size = segment.size, 
    segment.alpha = segment.alpha, min.segment.length = to_unit(min.segment.length), 
    arrow = arrow, force = force, max.iter = max.iter, direction = direction, 
    seed = seed, cl = "textrepeltree")
where 3: grobName(grob, prefix)
where 4: ggname("geom_text_repel", gTree(limits = limits, data = data, 
    lab = lab, nudges = nudges, box.padding = to_unit(box.padding), 
    point.padding = to_unit(point.padding), segment.colour = segment.colour, 
    segment.size = segment.size, segment.alpha = segment.alpha, 
    min.segment.length = to_unit(min.segment.length), arrow = arrow, 
    force = force, max.iter = max.iter, direction = direction, 
    seed = seed, cl = "textrepeltree"))
where 5: f(...)
where 6: (function (...) 
f(...))(data, panel_params, coord, parse = FALSE, na.rm = FALSE, 
    box.padding = 0.25, point.padding = 1e-06, segment.colour = NULL, 
    segment.size = 0.5, segment.alpha = NULL, min.segment.length = 0.5, 
    arrow = NULL, force = 1, max.iter = 2000, nudge_x = 0, nudge_y = 0, 
    xlim = c(NA, NA), ylim = c(NA, NA), direction = "both", seed = NA)
where 7: do.call(self$draw_panel, args)
where 8: FUN(X[[i]], ...)
where 9: lapply(split(data, data$PANEL), function(data) {
    if (empty(data)) 
        return(zeroGrob())
    panel_params <- layout$panel_params[[data$PANEL[1]]]
    do.call(self$draw_panel, args)
})
where 10: f(..., self = self)
where 11: self$geom$draw_layer(data, self$geom_params, layout, layout$coord)
where 12: f(..., self = self)
where 13: l$draw_geom(d, layout)
where 14: (function (l, d) 
l$draw_geom(d, layout))(dots[[1L]][[2L]], dots[[2L]][[2L]])
where 15: mapply(FUN = f, ..., SIMPLIFY = FALSE)
where 16: Map(function(l, d) l$draw_geom(d, layout), plot$layers, data)
where 17: ggplot_gtable.ggplot_built(data)
where 18: ggplot_gtable(data)
where 19: print.ggplot(x)
where 20: (function (x, ...) 
UseMethod("print"))(x)

 --- value of length: 3 type: logical ---
[1] FALSE  TRUE FALSE
 --- function from context --- 
function (x) 
{
    if (class(x) == "unit") {
        return(x)
    }
    if (is.na(x)) {
        return(NA)
    }
    unit(x, "lines")
}
<bytecode: 0x3ec7268>
<environment: namespace:ggrepel>
 --- function search by body ---
Function to_unit in namespace ggrepel has this body.
 ----------- END OF FAILURE REPORT -------------- 
Error in if (class(x) == "unit") { : the condition has length > 1
Calls: <Anonymous> ... <Anonymous> -> f -> ggname -> grobName -> gTree -> to_unit
Execution halted