Download a source. The function is a wrapper for specific functions designed for the different possible source types.
source type, e.g. "IEA". A list of all available source types
can be retrieved with function
For some sources there are subtypes of the source, for these source the subtype can be specified with this argument. If a source does not have subtypes, subtypes should not be set.
Boolean deciding whether existing data should be overwritten or not.
The underlying download-functions are required to provide a list of information back to
downloadSource. Following list entries should be provided:
url - full path to the file that should be downloaded
title - title of the data source
author - author(s) of the data set
license - license of the data set. Put unknown if not specified.
description - description of the data source
unit - unit(s) of the data
doi (optional) - a DOI URL to the data source
version (optional) - version number of the data set
release_date (optional) - release date of the data set
reference (optional) - A reference for the data set (e.g. a paper, if the data was derived from it)
This user-provided data is enriched by automatically derived metadata:
call - Information about the used madrat function call to download the data will check whether there are any values below the given threshold and warn in this case
accessibility - A measure of quality for the accessibility of the data. Currently it distinguished between iron (manual access), silver (automatic access via URL) and gold (automatic access via DOI).
Besides the names above (user-provided and automatically derived) it is possible to add custom metadata entries by extending the return list with additional, named entries.
Jan Philipp Dietrich, David Klein
1 2 3 4
## Not run: a <- downloadSource("Tau", subtype="historical") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.