Sets a directory under which the SPATA2 object is always stored using the function saveSpataObject().

setSpataDir(object, dir, add_wd = FALSE, ...)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

dir

Character value. The directory under which to store the SPATA2 object.

add_wd

Logical value. If TRUE, the working directory is added to the directory separated by '/'.

...

Used to absorb deprecated arguments or functions.

Value

The updated input object, containing the added, removed or computed results.