I don\'t understand what the error message is showing, what I have to do here.
cols <- brewer.pal(n = nPop(genlight.smelt), name = "Dark2")