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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cca
> ### Title: City Clustering Algorithm (CCA)
> ### Aliases: cca cca.single
> ### Keywords: utils
> 
> ### ** Examples
> 
> 
> # for a matrix
> data(population)
> image(population)
> 
> clusters <- cca(population, s=5)
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
osc
 --- call from context --- 
cca(population, s = 5)
 --- call from argument --- 
if (class(data) %in% c("data.frame", "RasterLayer")) {
    if (unit == "m") {
        ccaRm(data = data, d = s, res.x = res.x, res.y = res.y, 
            cell.class = cell.class, compare)
    }
    else {
        ccaRd(data = data, d = s, cell.class = cell.class, compare)
    }
} else {
    ccaM(data = data, s = s, mode = mode, count.cells = count.cells, 
        count.max = count.max)
}
 --- R stacktrace ---
where 1: cca(population, s = 5)

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (data, s = 1, mode = 3, count.cells = FALSE, count.max = ncol(data) * 
    3, res.x = NULL, res.y = NULL, cell.class = 1, unit = "", 
    compare = "") 
{
    if (class(data) %in% c("data.frame", "RasterLayer")) {
        if (unit == "m") {
            ccaRm(data = data, d = s, res.x = res.x, res.y = res.y, 
                cell.class = cell.class, compare)
        }
        else {
            ccaRd(data = data, d = s, cell.class = cell.class, 
                compare)
        }
    }
    else {
        ccaM(data = data, s = s, mode = mode, count.cells = count.cells, 
            count.max = count.max)
    }
}
<bytecode: 0x86fc320>
<environment: namespace:osc>
 --- function search by body ---
Function cca in namespace osc has this body.
 ----------- END OF FAILURE REPORT -------------- 
Error in if (class(data) %in% c("data.frame", "RasterLayer")) { : 
  the condition has length > 1
Calls: cca
Execution halted