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

> ### Name: compute.p.values
> ### Title: Compute Empirical p-values
> ### Aliases: compute.p.values
> 
> ### ** Examples
> 
> ## This is to generate an example file in the working directory.
> make.example.files()
[1] TRUE
> 
> ## This will read an input file named 'data.dat' that contains co-dominant markers,
> ## and a maximum allele frequency of 0.99 will be applied (i.e., by removing 
> ## marker loci in the observed and simulated datasets that have an allele with
> ## frequency larger than 0.99).
> read.data(infile = 'data.dat',dominance = FALSE,maf = 0.99)
Read 967 items
The data file data.dat contains 100 loci, with 2-5 alleles per locus, and 2 populations
The average values of population-specific measures of differentiation are:
----------------------------------------------
Pair		F_1			F_2
1-2		0.085			0.0537
----------------------------------------------
> 
> ## The following command line executes the simulations:
> run.detsel(example = TRUE)
The program will now create 1 simulation files. Please wait, this can take some time...
Simulating data in output file: `Pair_1_2_50_50.dat`...
All the simulations have been completed.
The difference between observed and simulated values of population-specific measures of differentiation are:
-------------------------------------------------------------------------
Pair		F_1 (obs)	F_1 (sim)	F_2 (obs)	F_2 (sim)
Pair_1_2	0.08503		0.08265		0.05368		0.05502
-------------------------------------------------------------------------
> 
> ## This compute empirical \emph{P}-values, assuming a range of values from -1 to 1
> ## in both dimensions, a grid of 50 x 50 bins, and a smoothing parameter m = 3
> ## in both dimensions.
> compute.p.values(x.range = c(-1,1),y.range = c(-1,1),n.bins = c(50,50),m = c(3,3))
Computing p-values. Please wait, this can take some time...
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  : 
  line 28 did not have 6 elements
Calls: compute.p.values -> read.table -> scan
Execution halted