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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: gama
> ### Title: Segments a dataset by using genetic search.
> ### Aliases: gama
> ### Keywords: file
> 
> ### ** Examples
> 
> 
> # loading flame dataset
> data(flame)
> 
> # segmentation of the flame dataset in k = 2 partitions
> # the 'plot.internals' says to the program do not plot the graphs about
> # genetic evolution search and silhouette index
> gama.obj <- gama(flame, k = 4, plot.internals = FALSE, generations = 30)

Details for the object of class 'gama':

Original data (first rows):
    x1    x2
1 1.85 27.80
2 1.35 26.65
3 1.40 23.25
4 0.85 23.05
5 0.50 22.35
6 0.65 21.35

Cluster partitions:
  [1] 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
 [38] 1 1 1 1 1 1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
 [75] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 2 4 4 2 2
[112] 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
[149] 2 4 4 4 4 1 4 4 3 2 2 2 3 3 3 1 3 3 3 3 3 3 3 3 3 3 2 2 3 3 3 3 3 3 3 3 3
[186] 3 3 3 3 3 3 3 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
[223] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3

Cluster Centers:
         x1       x2
1  3.008901 19.10129
4  6.936777 17.71812
3  7.926711 24.39537
2 11.107826 21.82931

Average Silhouette Width index (ASW):
[1] 0.6198258

Calinski Harabasz index (CH):
[1] 254.076

C-Index (CI):
[1] 0.06873817

Dunn index (DI):
[1] 0.0461353

Call:
gama(dataset = flame, k = 4, generations = 30, plot.internals = FALSE)

Runtime:
Time difference of 3.03 secs
> # ** use at least 100 generations for simple datasets and 500 for complex datasets
> 
> # it draws the partitions to which each element belongs
> gama.plot.partitions(gama.obj)
Error in grid.Call.graphics(C_setviewport, vp, TRUE) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
Calls: gama.plot.partitions ... push.vp.vpTree -> push.vp -> push.vp.viewport -> grid.Call.graphics
Execution halted