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

> ### Name: run_farm_sim
> ### Title: Initialise individuals and simulate farming
> ### Aliases: run_farm_sim
> 
> ### ** Examples
> 
> gmt       <- matrix(data = 0, nrow = 2, ncol = 2);
> diag(gmt) <- 1;
> mg        <- mine_gmatrix(gmatrix = gmt, loci = 4, layers = 2, indivs = 100, 
+                          npsize = 100, max_gen = 2, prnt_out = FALSE);
> sim       <- run_farm_sim(mine_output = mg, N = 100, xdim = 40, ydim = 40, 
+                          repro = "asexual", time_steps = 3, 
+                          print_inds = FALSE, print_gens = FALSE,
+                          print_last = FALSE, get_stats = FALSE);

 *** caught segfault ***
address 6, cause 'memory not mapped'

Traceback:
 1: run_farming_sim(pests, land, paras)
 2: sim_crops(pests = pest, land = land, time_steps = time_steps,     mutation_pr = mutation_pr, crossover_pr = crossover_pr, mutation_type = mutation_type,     net_mu_layers = net_mu_layers, net_mu_dir = net_mu_dir, mutation_direction = mutation_direction,     crop_rotation_type = crop_rotation_type, crop_rotation_time = crop_rotation_time,     pesticide_rotation_type = pesticide_rotation_type, pesticide_rotation_time = pesticide_rotation_time,     crop_per_cell = crop_per_cell, pesticide_per_cell = pesticide_per_cell,     crop_sd = crop_sd, pesticide_sd = pesticide_sd, crop_min = crop_min,     crop_max = crop_max, pesticide_min = pesticide_min, pesticide_max = pesticide_max,     crop_number = crop_number, pesticide_number = pesticide_number,     print_inds = print_inds, print_gens = print_gens, print_last = print_last,     K_on_birth = K_on_birth, move_distance = move_distance, food_needed_surv = food_needed_surv,     pesticide_tolerated_surv = pest_t_surv, food_needed_repr = food_needed_repr,     pesticide_tolerated_repr = pest_t_repr, mating_distance = mating_distance,     food_consume = food_consume, pesticide_consume = pesticide_consume,     lambda_value = lambda_value, movement_bouts = movement_bouts,     pesticide_start = pesticide_start, immigration_rate = immigration_rate,     get_f_coef = get_f_coef, get_stats = get_stats, metabolism = metabolism)
 3: run_farm_sim(mine_output = mg, N = 100, xdim = 40, ydim = 40,     repro = "asexual", time_steps = 3, print_inds = FALSE, print_gens = FALSE,     print_last = FALSE, get_stats = FALSE)
An irrecoverable exception occurred. R is aborting now ...