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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: filterByLand
> ### Title: Filter occurrences based on land vs ocean
> ### Aliases: filterByLand
> 
> ### ** Examples
> 
> data(crotalus)
> 
> #identify points that fall off land
> filterByLand(crotalus[,c('decimallongitude','decimallatitude')])
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
rangeBuilder
 --- call from context --- 
filterByLand(crotalus[, c("decimallongitude", "decimallatitude")])
 --- call from argument --- 
if (class(coords) %in% c("SpatialPoints", "SpatialPointsDataFrame")) {
    if (is.na(proj4string(coords))) {
        stop("proj4string must be specified for spatial input.")
    }
    if (proj4string(worldRaster) != proj) {
        coords <- sp::spTransform(coords, CRS(proj4string(worldRaster)))
    }
    coords <- as.matrix(as.data.frame(coords))
}
 --- R stacktrace ---
where 1: filterByLand(crotalus[, c("decimallongitude", "decimallatitude")])

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (coords, proj = "+proj=longlat +datum=WGS84") 
{
    if (is.null(dim(coords))) {
        coords <- matrix(coords, nrow = 1, ncol = 2)
    }
    if (class(coords) == "data.frame") {
        coords <- as.matrix(coords)
    }
    if (class(coords) %in% c("SpatialPoints", "SpatialPointsDataFrame")) {
        if (is.na(proj4string(coords))) {
            stop("proj4string must be specified for spatial input.")
        }
        if (proj4string(worldRaster) != proj) {
            coords <- sp::spTransform(coords, CRS(proj4string(worldRaster)))
        }
        coords <- as.matrix(as.data.frame(coords))
    }
    if (class(coords) == "matrix" & proj4string(worldRaster) != 
        proj) {
        coords <- SpatialPoints(coords, CRS(proj))
        coords <- sp::spTransform(coords, CRS(proj4string(worldRaster)))
        coords <- as.matrix(as.data.frame(coords))
    }
    if (class(coords) != "matrix" | mode(coords) != "numeric") {
        stop("coords must be a numeric matrix.")
    }
    e <- extract(worldRaster, coords)
    e <- ifelse(is.na(e), FALSE, TRUE)
    return(e)
}
<bytecode: 0x5644d1b15bd8>
<environment: namespace:rangeBuilder>
 --- function search by body ---
Function filterByLand in namespace rangeBuilder has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1