Running examples in 'pointdexter-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: LabelPointsWithinPolygons
> ### Title: Labels points located inside a polygon
> ### Aliases: LabelPointsWithinPolygons
> 
> ### ** Examples
> 
> ## SpatialPolygonsDataFrame, one polygon example ## -----
> 
> # load necessary data ----
> data("city_boundary_spdf")
> data("cps_sy1819")
> 
> # obtain boundaries for the City of Chicago ----
> boundaries <-
+   GetPolygonBoundaries(my.polygon = city_boundary_spdf)
> 
> # identify which schools lie within the City of Chicago -----
> cps_sy1819$citywide <-
+   LabelPointsWithinPolygons(lng = cps_sy1819$school_longitude
+                             , lat = cps_sy1819$school_latitude
+                             , polygon.boundaries = boundaries)
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
pointdexter
 --- call from context --- 
LabelPointsWithinPolygons(lng = cps_sy1819$school_longitude, 
    lat = cps_sy1819$school_latitude, polygon.boundaries = boundaries)
 --- call from argument --- 
if (class(polygon.boundaries) != "matrix") {
    if (!is.list(polygon.boundaries)) {
        stop("polygon.boundaries must either be of class matrix or a list of matrices.\n See ?GetPolygonBoundaries for more information.")
    }
}
 --- R stacktrace ---
where 1: LabelPointsWithinPolygons(lng = cps_sy1819$school_longitude, 
    lat = cps_sy1819$school_latitude, polygon.boundaries = boundaries)

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (lng, lat, polygon.boundaries) 
{
    if (is.numeric(lng) == FALSE) {
        stop("lng must be a numeric vector.")
    }
    if (is.numeric(lat) == FALSE) {
        stop("lat must be a numeric vector.")
    }
    if (length(lng) != length(lat)) {
        stop("lng and lat must be of equal length.")
    }
    if (any(is.na(lng))) {
        stop("Filter lng and lat so that neither contain any NA values.")
    }
    if (any(is.na(lat))) {
        stop("Filter lng and lat so that neither contain any NA values.")
    }
    if (class(polygon.boundaries) != "matrix") {
        if (!is.list(polygon.boundaries)) {
            stop("polygon.boundaries must either be of class matrix or a list of matrices.\n See ?GetPolygonBoundaries for more information.")
        }
    }
    if (class(polygon.boundaries) != "list") {
        if (!is.matrix(polygon.boundaries)) {
            stop("polygon.boundaries must either be of class matrix or a list of matrices. See ?GetPolygonBoundaries for more information.")
        }
    }
    if (is.list(polygon.boundaries) & is.null(names(polygon.boundaries))) {
        stop("Please label the matrices within polygon.boundaries. See ?names for more details.")
    }
    df <- data.frame(x = lng, y = lat, index = 1:length(lng))
    if (is.matrix(polygon.boundaries)) {
        return(df$index %in% splancs::inpip(pts = df, poly = polygon.boundaries, 
            bound = NULL))
    }
    else {
        temp <- lapply(X = polygon.boundaries, FUN = function(i) splancs::inpip(pts = df, 
            poly = i, bound = NULL))
        names(temp) <- names(polygon.boundaries)
        temp <- utils::stack(temp)
        names(temp)[names(temp) == "values"] <- "index"
        names(temp)[names(temp) == "ind"] <- "label"
        temp$label <- as.character(temp$label)
        if (nrow(df) > nrow(temp)) {
            no.label.points <- data.frame(index = df$index[which(!df$index %in% 
                temp$index)], label = NA)
            temp <- rbind(temp, no.label.points)
        }
        temp <- temp[order(temp$index), ]
        return(temp$label)
    }
}
<bytecode: 0x4f729d8>
<environment: namespace:pointdexter>
 --- function search by body ---
Function LabelPointsWithinPolygons in namespace pointdexter has this body.
 ----------- END OF FAILURE REPORT -------------- 
Error in if (class(polygon.boundaries) != "matrix") { : 
  the condition has length > 1
Calls: LabelPointsWithinPolygons
Execution halted