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

> ### Name: recmapGA
> ### Title: Genetic Algorithm Wrapper Function for recmap
> ### Aliases: recmapGA
> 
> ### ** Examples
> 
> 
> ## The default fitnes function is currently defined as
> function(idxOrder, Map, ...){
+ 
+   Cartogram <- recmap(Map[idxOrder, ])
+   # a map region could not be placed; 
+   # accept only feasible solutions!
+   
+   if (sum(Cartogram$topology.error == 100) > 0){return (0)}
+   
+   1 / sum(Cartogram$relpos.error)
+ }
function (idxOrder, Map, ...) 
{
    Cartogram <- recmap(Map[idxOrder, ])
    if (sum(Cartogram$topology.error == 100) > 0) {
        return(0)
    }
    1/sum(Cartogram$relpos.error)
}
> 
> 
> ## use Genetic Algorithms (GA >=3.0.0) as metaheuristic
> set.seed(1)
> res <- recmapGA(Map = checkerboard(4), pmutation = 0.25)
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a3 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : b4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : b4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : b4 could not be placed on the first attempt;
Warning in recmap_(V, E) : c1 could not be placed on the first attempt;
Warning in recmap_(V, E) : b4 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : c1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : a1 could not be placed on the first attempt;
Warning in recmap_(V, E) : d4 could not be placed on the first attempt;
Error in gaperm_oxCrossover_Rcpp(object, parents) : index error
Calls: recmapGA -> ga -> crossover -> gaperm_oxCrossover_Rcpp
Execution halted