Try loading your data using the function gl.read.vcf and then run the compliance function (gl.compliance.check) as shown below. Also have a look at our tutorial for loading data other than DArTseq:
### Load libraries
library(dartR)
### Read dataset
genlight <- gl.read.vcf("ednapool_dp20_miss6s_snp_bi_gatk4_v2.recode2.vcf")
#running compliance check function
genlight <- gl.compliance.check(genlight)
# subsample loci
genlight <- gl.subsample.loci(genlight,n=200,method = "random")
### Add pop info
pop_table <- read.table("population-map-intradna.txt", header=TRUE)
cbind(indNames(t1),pop_table$INDIVIDUALS[1:8])
pop(genlight) <- as.factor(pop_table$STRATA[1:8])
### Estimate AFD
afd.pond <-
gl.report.pa(genlight, method = "pairwise")