Reads an .RDS file, checks if it is an object of class SPATA2 and checks whether it must be updated.

loadSpataObject(directory_spata, verbose = TRUE, update = TRUE)

Arguments

directory_spata

Character value. The directory from which to load the SPATA2 object.

verbose

Logical. If TRUE, informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

update

Logical value. If TRUE, calls updateSpataObject() after loading to check whether the loaded object is up to date.

Value

The loaded object. If not of class SPATA2, a warning is printed.

Details

loadSpataObject() is a wrapper around base::readRDS() with which you could load your SPATA2 object as well.