Save Azimuth references and neighbors index to same folder

SaveAzimuthReference(object = NULL, folder = NULL)

Arguments

object

An Azimuth reference

file

Path to save Azimuth reference to; defaults to file.path(getwd(), "azimuth_reference/"))

...

Arguments passed on to base::saveRDS

ascii

a logical. If TRUE or NA, an ASCII representation is written; otherwise (default), a binary one is used. See the comments in the help for save.

version

the workspace format version to use. NULL specifies the current default version (3). The only other supported value is 2, the default from R 1.4.0 to R 3.5.0.

compress

a logical specifying whether saving to a named file is to use "gzip" compression, or one of "gzip", "bzip2" or "xz" to indicate the type of compression to be used. Ignored if file is a connection.

refhook

a hook function for handling reference objects.

Value

Invisibly returns file

See also

Examples

# Make Azimuth Reference object
obj.azimuth <- AzimuthReference(object)
#> Error in eval(expr, envir, enclos): object 'object' not found

# Save 
SaveAzimuthReference(object = obj.azimuth, folder = "azimuth_reference")
#> Error in eval(expr, envir, enclos): object 'obj.azimuth' not found

# Run Azimuth

query <- RunAzimuth(query = query, 
                    reference = "azimuth_reference", 
                    ...)
#> Error in eval(expr, envir, enclos): '...' used in an incorrect context