This function needs package vcfR. At the time of writing (August 2020) the package was no longer available from CRAN. To install the package check their github repository. https://github.com/knausb/vcfR. Once installed uncomment and run with installed=TRUE
gl.read.vcf(vcffile, verbose = 1, installed = FALSE)-- a vcf file (works only for diploid data)
set to 2
switch to run the function once vcfR package is installed
A genlight object, with most slots filled.