Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gamesGA)
  > 
  > test_check("gamesGA")
  -- 1. Failure: Mutation occurs given a set seed of 1 (@test-crossover.R#16)  ---
  crossover(agents, 0.06)[[6]][1] not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  -- 2. Failure: Fitness function returns expected values (@test-tournament.R#14) 
  tournament(agents = agents, fitness = fitnesses)[[1]] not equal to agents[[3]].
  6/10 mismatches (average diff: 1)
  [3] 1 - 0 == 1
  [4] 1 - 0 == 1
  [5] 1 - 0 == 1
  [6] 1 - 0 == 1
  [7] 1 - 0 == 1
  [8] 1 - 0 == 1
  
  -- 3. Failure: Fitness function returns expected values (@test-tournament.R#17) 
  tournament(agents = agents, fitness = fitnesses)[[2]] not equal to agents[[3]].
  2/10 mismatches (average diff: 1)
  [3] 1 - 0 == 1
  [4] 1 - 0 == 1
  
  -- 4. Failure: Fitness function returns expected values (@test-tournament.R#20) 
  tournament(agents = agents, fitness = fitnesses)[[3]] not equal to agents[[10]].
  5/10 mismatches (average diff: 1)
  [5] 0 - 1 == -1
  [6] 0 - 1 == -1
  [7] 0 - 1 == -1
  [8] 0 - 1 == -1
  [9] 0 - 1 == -1
  
  -- 5. Failure: Fitness function returns expected values (@test-tournament.R#23) 
  tournament(agents = agents, fitness = fitnesses)[[4]] not equal to agents[[5]].
  5/10 mismatches (average diff: 1)
  [5] 1 - 0 == 1
  [6] 1 - 0 == 1
  [7] 1 - 0 == 1
  [8] 1 - 0 == 1
  [9] 1 - 0 == 1
  
  -- 6. Failure: Fitness function returns expected values (@test-tournament.R#29) 
  tournament(agents = agents, fitness = fitnesses)[[6]] not equal to agents[[5]].
  3/10 mismatches (average diff: 1)
  [2] 0 - 1 == -1
  [3] 0 - 1 == -1
  [4] 0 - 1 == -1
  
  -- 7. Failure: Fitness function returns expected values (@test-tournament.R#32) 
  tournament(agents = agents, fitness = fitnesses)[[7]] not equal to agents[[10]].
  4/10 mismatches (average diff: 1)
  [6] 0 - 1 == -1
  [7] 0 - 1 == -1
  [8] 0 - 1 == -1
  [9] 0 - 1 == -1
  
  -- 8. Failure: Fitness function returns expected values (@test-tournament.R#35) 
  tournament(agents = agents, fitness = fitnesses)[[8]] not equal to agents[[4]].
  3/10 mismatches (average diff: 1)
  [4] 1 - 0 == 1
  [5] 1 - 0 == 1
  [6] 1 - 0 == 1
  
  -- 9. Failure: Fitness function returns expected values (@test-tournament.R#38) 
  tournament(agents = agents, fitness = fitnesses)[[9]] not equal to agents[[5]].
  1/10 mismatches
  [5] 1 - 0 == 1
  
  -- 10. Failure: Fitness function returns expected values (@test-tournament.R#41)
  tournament(agents = agents, fitness = fitnesses)[[10]] not equal to agents[[3]].
  7/10 mismatches (average diff: 1)
  [3] 1 - 0 == 1
  [4] 1 - 0 == 1
  [5] 1 - 0 == 1
  [6] 1 - 0 == 1
  [7] 1 - 0 == 1
  [8] 1 - 0 == 1
  [9] 1 - 0 == 1
  
  == testthat results  ===========================================================
  OK: 22 SKIPPED: 0 FAILED: 10
  1.  Failure: Mutation occurs given a set seed of 1 (@test-crossover.R#16) 
  2.  Failure: Fitness function returns expected values (@test-tournament.R#14) 
  3.  Failure: Fitness function returns expected values (@test-tournament.R#17) 
  4.  Failure: Fitness function returns expected values (@test-tournament.R#20) 
  5.  Failure: Fitness function returns expected values (@test-tournament.R#23) 
  6.  Failure: Fitness function returns expected values (@test-tournament.R#29) 
  7.  Failure: Fitness function returns expected values (@test-tournament.R#32) 
  8.  Failure: Fitness function returns expected values (@test-tournament.R#35) 
  9.  Failure: Fitness function returns expected values (@test-tournament.R#38) 
  10. Failure: Fitness function returns expected values (@test-tournament.R#41) 
  
  Error: testthat unit tests failed
  Execution halted