Make unique GRASS name for rasters, vectors, etc.
.makeSourceName(x = NULL, type = NULL, n = 1L, name = NULL)
Character vector.
Character or NULL
: Descriptive string. Developers, please note: To assist with debugging, GRASS objects created by a GRASS module have the module named in this argument (with underscores). Example: "v_in_ogr" or "r_resample".
Character: raster
, raster3D
, vector
, or table
.
Numeric integer: Number of names to make
NULL
(default) or character
: Name of the output, attached as an attribute.