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.

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 input spata2 object containing the added or computed results.