Create an R
file to fetch data including adding metadata
via roxygen2 fields to the top of the file.
draft.data.script(name, title, description, format, originator, year, period,
access, content)
the name of the dataset and the file name that will be created.
description of the data, including survey names or the like.
a more involved description if required.
the format of the data produced, e.g. "csv"
who prepared the data, e.g. a working group acronym.
year of the analysis when the data were used. The default is the current year.
a numeric vector of the form c(1990, 2000)
,
indicating the first and last year that the data cover.
Alternatively, a single number if the data cover only one year.
data access code: "OSPAR"
, "Public"
, or
"Restricted"
.
the r code that fetches and saves the data