This is a wrapper for readRDS()
gl.load(file, verbose = NULL)
The loaded object
The script loads the object from the current workspace and returns the gl object.
gl.save(testset.gl,file.path(tempdir(),'testset.rds'))
#> Starting gl.save
#> Processing genlight object with SNP data
#> Saved object of type SNP to /tmp/RtmpaU40iz/testset.rds
#> Completed: gl.save
#>
gl <- gl.load(file.path(tempdir(),'testset.rds'))
#> Starting gl.load
#> Processing genlight object with SNP data
#> Loaded object of type SNP from /tmp/RtmpaU40iz/testset.rds
#> Starting gl.compliance.check
#> Processing genlight object with SNP data
#> Checking coding of SNPs
#> SNP data scored NA, 0, 1 or 2 confirmed
#> Checking locus metrics and flags
#> Recalculating locus metrics
#> Checking for monomorphic loci
#> Dataset contains monomorphic loci
#> Checking for loci with all missing data
#> No loci with all missing data detected
#> Checking whether individual names are unique.
#> Checking for individual metrics
#> Individual metrics confirmed
#> Checking for population assignments
#> Population assignments confirmed
#> Spelling of coordinates checked and changed if necessary to
#> lat/lon
#> Completed: gl.compliance.check
#> Completed: gl.load
#>