Skip to contents

Writes the downloadable merge-template rows to an .xlsx workbook.

Usage

downloadMergingTemplateWorkbook(
  cmid,
  database = "SocioMap",
  path = NULL,
  overwrite = FALSE,
  url = NULL
)

Arguments

cmid

A merging-template-related CMID accepted by the API route.

database

A string specifying the database from which to retrieve the template. Valid options are "SocioMap" or "ArchaMap".

path

Optional output workbook path. Defaults to merging_template_<CMID>.xlsx in the working directory.

overwrite

Whether to overwrite an existing file.

url

API URL override.

Value

Invisibly returns a list with path and template.

Examples

if (FALSE) { # \dontrun{
downloadMergingTemplateWorkbook(
  cmid = "AD354277",
  database = "ArchaMap",
  path = "merging_template_AD354277.xlsx",
  overwrite = TRUE
)
} # }