Based on a set of input arguments, creates a new Zonation project on the file system following a particular folder and file layout.
create_zproject(
name,
dir,
variants,
dat_template_file = NULL,
spp_template_file = NULL,
spp_template_dir = NULL,
overwrite = FALSE,
debug = FALSE,
...
)
Character string name for the project. A new directory named
by name
will be creaated in a location specified by dir
.
Character string path pointing to a location to be created.
Character vector of names for new variants. Ignored if using an existing project.
Character path to a dat file template. If no template is specified, uses the template distributed with zonator. Ignored if using an existing project.
Character path to a spp file template. If this or
spp_template_dir
are not specified, uses the template
distributed with zonator. Ignored if using an existing project.
Character path to directory containing biodiversity
feature rasters. If this or spp_template_file
are not specified,
uses the template distributed with zonator. If both are defined, then
spp_template_dir
overrides. Ignored if using an existing
project.
logical should existing project be overwritten (default: FALSE).
logical defining if debugging level for logging should be used (default: FALSE).
additional arguments passed to create_spp
.
Invisible(NULL) .
load_zproject
and
create_spp
.