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

> ### Name: bpec
> ### Title: Bayesian Phylogeographic and Ecological Clustering (BPEC)
> ### Aliases: bpec plot.bpec summary.bpec mean.bpec print.bpec
> ### Keywords: phylogeography clustering Bayesian phylogenetics
> 
> ### ** Examples
> 
>   ## if you want to load the `mini' example Brown Frog dataset
>   data(MacrocnemisRawSeqs)
>   data(MacrocnemisCoordsLocsMini)
>   rawSeqs <- MacrocnemisRawSeqs
>   coordsLocs <- MacrocnemisCoordsLocsMini
> 
>   dims <- 3 #this is 2 if you only have geographical longitude/latitude. 
> #(add 1 for each environmental or phenotypic covariate)
> maxMig <- 2 #you will need a higher maximum number of migrations, suggest 7
> ds <- 0 #start with ds=0 and increase to 1 and then to 2
> iter <- 1000 #you will need far more iterations for convergence, start with 100,000
> postSamples <- 100 #you will need at least 100 saved posterior samples
> 
> #run the Markov chain Monte Carlo sampler
> bpecout <- bpec.mcmc(rawSeqs,coordsLocs,maxMig,iter,ds,postSamples,dims)

The dataset appears to have some integer-valued environmental/phenotypic entries.
If this is not correct, check the value you have given for dims.

Starting BPEC...
Inferring possible missing sequences....
Counting loops in the network...

The program found no loops that need to be resolved in the network

Number of iterations is 1000
Number of saved iterations 100
Sample size is 40
Effective sequence length is 8
Total number of haplotypes (including missing) 10
Dimension is 3
Parsimony relaxation is 0
Maximum number of migrations is 2

Starting the MCMC sampler (burn-in ends at 90% and acceptance rate re-started):
Chain 1: |                    |  0% (accepted samples       0 time   0 minutes)|=                   |  5% (accepted samples      17 time   0 minutes)|==                  | 10% (accepted samples      41 time   0 minutes)|===                 | 15% (accepted samples      63 time   0 minutes)|====                | 20% (accepted samples      86 time   0 minutes)|=====               | 25% (accepted samples     108 time   0 minutes)|======              | 30% (accepted samples     140 time   0 minutes)|=======             | 35% (accepted samples     166 time   0 minutes)|========            | 40% (accepted samples     190 time   0 minutes)|=========           | 45% (accepted samples     221 time   0 minutes)|==========          | 50% (accepted samples     232 time   0 minutes)|===========         | 55% (accepted samples     240 time   0 minutes)|============        | 60% (accepted samples     252 time   0 minutes)|=============       | 65% (accepted samples     267 time   0 minutes)|==============      | 70% (accepted samples     292 time   0 minutes)|===============     | 75% (accepted samples     314 time   0 minutes)|================    | 80% (accepted samples     327 time   0 minutes)|=================   | 85% (accepted samples     342 time   0 minutes)|==================  | 90% (accepted samples       0 time   0 minutes)|=================== | 95% (accepted samples      13 time   0 minutes)|====================|100% (accepted samples      18 time   0 minutes)
Chain 2: |                    |  0% (accepted samples      18 time   0 minutes)|=                   |  5% (accepted samples      45 time   0 minutes)|==                  | 10% (accepted samples      71 time   0 minutes)|===                 | 15% (accepted samples      94 time   0 minutes)|====                | 20% (accepted samples     122 time   0 minutes)|=====               | 25% (accepted samples     149 time   0 minutes)|======              | 30% (accepted samples     173 time   0 minutes)|=======             | 35% (accepted samples     197 time   0 minutes)|========            | 40% (accepted samples     225 time   0 minutes)|=========           | 45% (accepted samples     255 time   0 minutes)|==========          | 50% (accepted samples     265 time   0 minutes)|===========         | 55% (accepted samples     289 time   0 minutes)|============        | 60% (accepted samples     290 time   0 minutes)|=============       | 65% (accepted samples     305 time   0 minutes)|==============      | 70% (accepted samples     317 time   0 minutes)|===============     | 75% (accepted samples     329 time   0 minutes)|================    | 80% (accepted samples     343 time   0 minutes)|=================   | 85% (accepted samples     348 time   0 minutes)|==================  | 90% (accepted samples       0 time   0 minutes)|=================== | 95% (accepted samples       1 time   0 minutes)|====================|100% (accepted samples      23 time   0 minutes)
 *** caught segfault ***
address 80489a0, cause 'memory not mapped'

Traceback:
 1: bpec.mcmc(rawSeqs, coordsLocs, maxMig, iter, ds, postSamples,     dims)
An irrecoverable exception occurred. R is aborting now ...