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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: gl.assign
> ### Title: Assign an individual of unknown provenance to population
> ### Aliases: gl.assign
> 
> ### ** Examples
> 
> x <- testset.gl
> # Test run with a focal individual from the Macleay River (EmmacMaclGeor)
> x <- gl.assign(testset.gl, id="UC_00146", nmin=10, alpha=0.05, t=1)
Starting gl.assign
IDENTIFYING LOCI WITH PRIVATE ALLELES

Discarding 10 populations with sample size less than 10 : EmmacClarJack EmmacClarYate EmmacMDBGwyd EmmacMaryBoru EmmacMaryPetr EmmacNormJack EmmacNormLeic EmmacNormSalt EmsubRopeMata EmvicVictJasp 

Retaining 20 populations with sample size greater than or equal to 10 : EmmacBrisWive EmmacBurdMist EmmacBurnBara EmmacCoopAvin EmmacCoopCully EmmacCoopEulb EmmacFitzAllig EmmacJohnWari EmmacMDBBowm EmmacMDBCond EmmacMDBCudg EmmacMDBForb EmmacMDBMaci EmmacMDBMurrMung EmmacMDBSanf EmmacMaclGeor EmmacRichCasi EmmacRoss EmmacRussEube EmmacTweeUki 

Assigning 1 unknown individual(s) to 20 target populations
Unknown individual: UC_00146 
Total number of SNP loci:  255 

Table showing number of loci with private alleles
   0 EmmacMaclGeor 
   1 EmmacBurnBara EmmacRichCasi EmmacTweeUki 
   2 EmmacBrisWive EmmacMDBBowm EmmacMDBCudg EmmacMDBForb EmmacMDBMaci EmmacMDBMurrMung 
   3 EmmacFitzAllig EmmacMDBCond EmmacMDBSanf EmmacRussEube 
   4 EmmacBurdMist EmmacJohnWari EmmacRoss 
   6 EmmacCoopEulb 
   7 EmmacCoopCully 
   16 EmmacCoopAvin 

Data retained for the unknown individual and remaining candidate source populations ( 1 or less loci with private alleles)


COMPUTING ASSIGNMENT BASED ON CONFIDENCE ENVELOPES

  Number of populations, including the unknown: 5 
  Number of dimensions with substantial eigenvalues: 7 
  Hard coded upper limit to dimensions: 8 
  User specified dimensions to retain: 
Dimension of confidence envelope set at 5 
Performing a PCoA, individuals as entities, SNP loci as attributes
Ordination yielded 7 informative dimensions from 41 original dimensions
  PCoA Axis 1 explains 31.5 % of the total variance
  PCoA Axis 1 and 2 combined explain 45.4 % of the total variance
  PCoA Axis 1-3 combined explain 56.6 % of the total variance
Plotting populations
Warning: Removed 1 rows containing missing values (geom_path).
Error in `[<-.data.frame`(`*tmp*`, is.na(cm.data[, p]), p, value = 0.5) : 
  replacement has 1 row, data has 0
Calls: gl.assign ... drawDetails -> drawDetails.dlgrob -> [<- -> [<-.data.frame
Execution halted