Azimuth references and neighbors index to same folderR/helpers.R
SaveAzimuthReference.RdSave Azimuth references and neighbors index to same folder
SaveAzimuthReference(object = NULL, folder = NULL)An Azimuth reference
Path to save Azimuth reference to; defaults to
file.path(getwd(), "azimuth_reference/"))
Arguments passed on to base::saveRDS
asciia 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.
versionthe 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.
compressa 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.
refhooka hook function for handling reference objects.
Invisibly returns file
# 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