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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: conStruct
> ### Title: Run a conStruct analysis.
> ### Aliases: conStruct
> 
> ### ** Examples
> 
> # load example dataset
> data(conStruct.data)
> 
> # run example spatial analysis with K=1
> 	#	
> # for this example, make.figs and save.files
> #	are set to FALSE, but most users will want them 
> #	set to TRUE
> my.run <- conStruct(spatial = TRUE,
+ 		 			K = 1,
+ 		 			freqs = conStruct.data$allele.frequencies,
+ 		 			geoDist = conStruct.data$geoDist,
+ 		 			coords = conStruct.data$coords,
+ 		 			prefix = "test",
+ 		 			n.chains = 1,
+ 		 			n.iter = 1e3,
+ 		 			make.figs = FALSE,
+ 		 			save.files = FALSE)
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
conStruct
 --- call from context --- 
check.freqs.arg(args)
 --- call from argument --- 
if (class(args[["freqs"]]) != "matrix") {
    stop("\nthe \"freqs\" argument must be of class \"matrix\"\n")
}
 --- R stacktrace ---
where 1: check.freqs.arg(args)
where 2: check.call(args <- as.list(environment()))
where 3: conStruct(spatial = TRUE, K = 1, freqs = conStruct.data$allele.frequencies, 
    geoDist = conStruct.data$geoDist, coords = conStruct.data$coords, 
    prefix = "test", n.chains = 1, n.iter = 1000, make.figs = FALSE, 
    save.files = FALSE)

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (args) 
{
    if (class(args[["freqs"]]) != "matrix") {
        stop("\nthe \"freqs\" argument must be of class \"matrix\"\n")
    }
    if (any(args[["freqs"]] > 1, na.rm = TRUE)) {
        stop("\nall values of the the \"freqs\" argument must be less than 1\n")
    }
    if (any(args[["freqs"]] < 0, na.rm = TRUE)) {
        stop("\nall values of the the \"freqs\" argument must be greater than 0\n")
    }
    return(invisible("freqs arg checked"))
}
<bytecode: 0x58d07d0>
<environment: namespace:conStruct>
 --- function search by body ---
Function check.freqs.arg in namespace conStruct has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1