Reads Version and puts it in an environment variable, which is how a
manual's index.Rmd gets it onto the title page: the YAML header is parsed
before any of the book's code runs, so a subtitle can only reach it through
the environment.
Usage
manualVersion(
description = "DESCRIPTION",
envVar = "SPADES_MANUAL_VERSION",
legacy = character(0)
)Details
By field name, never by position. A manual that read read.dcf(...)[4] got
Version only because it happened to be the fourth field, so adding any
field above it would have printed the wrong string on the title page.
A manual whose chapters still read a name of its own passes it as legacy,
e.g. manualVersion(legacy = "LANDR_MAN_VERSION"). Nothing is set by
default: setting every manual's name in every manual meant each one exported
variables belonging to the others.