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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: geom_fit_text
> ### Title: A 'ggplot2' geom to fit text inside a box
> ### Aliases: geom_fit_text
> 
> ### ** Examples
> 
> 
> ggplot2::ggplot(ggplot2::presidential, ggplot2::aes(ymin = start, ymax = end,
+     label = name, fill = party, xmin = 0, xmax = 1)) +
+   ggplot2::geom_rect(colour = 'black') +
+   geom_fit_text(grow = TRUE)
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
ggfittext
 --- call from context --- 
f(...)
 --- call from argument --- 
if (is.null(data$xmin) & is.null(data$xmax) & class(params$width) != 
    "unit") {
    data$xmin <- data$x - params$width/2
    data$xmax <- data$x + params$width/2
}
 --- R stacktrace ---
where 1: f(...)
where 2: self$geom$setup_data(data, c(self$geom_params, self$aes_params))
where 3: f(..., self = self)
where 4: l$compute_geom_1(d)
where 5: f(l = layers[[i]], d = data[[i]])
where 6: by_layer(function(l, d) l$compute_geom_1(d))
where 7: ggplot_build.ggplot(x)
where 8: ggplot_build(x)
where 9: print.ggplot(x)
where 10: (function (x, ...) 
UseMethod("print"))(x)

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (data, params) 
{
    if ("width" %in% names(data)) {
        warning("`width` is now an argument, not an aesthetic, and will be removed in a future version")
    }
    if ("height" %in% names(data)) {
        warning("`height` is now an argument, not an aesthetic, and will be removed in a future version")
    }
    if (!(("xmin" %in% names(data) & "xmax" %in% names(data)) | 
        ("x" %in% names(data)))) {
        stop("geom_fit_text needs either 'xmin' and 'xmax', or 'x'", 
            .call = FALSE)
    }
    if (!("ymin" %in% names(data) & "ymax" %in% names(data) | 
        "y" %in% names(data))) {
        stop("geom_fit_text needs either 'ymin' and 'ymax', or 'y'", 
            .call = FALSE)
    }
    if (is.null(data$xmin) & is.null(data$xmax) & class(params$width) != 
        "unit") {
        data$xmin <- data$x - params$width/2
        data$xmax <- data$x + params$width/2
    }
    if (is.null(data$ymin) & is.null(data$ymax) & class(params$height) != 
        "unit") {
        data$ymin <- data$y - params$height/2
        data$ymax <- data$y + params$height/2
    }
    data
}
<bytecode: 0x559a30f79a00>
<environment: namespace:ggfittext>
 --- function search by body ---
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1