Skip to contents

This is a wrapper for readRDS()

Usage

gl.load(file, verbose = NULL)

Arguments

file

Name of the file to receive the binary version of the object [required].

verbose

Verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log; 3, progress and results summary; 5, full report [default 2 or as specified using gl.set.verbosity].

Value

The loaded object

Details

The script loads the object from the current workspace and returns the gl object.

See also

Author

Custodian: Arthur Georges – Post to https://groups.google.com/d/forum/dartr

Examples

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/RtmpWgoHDI/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/RtmpWgoHDI/testset.rds 
#> Completed: gl.load 
#>