retrieveData | R Documentation |
Function to retrieve a predefined collection of calculations for a specific regionmapping.
retrieveData(
model,
rev = 0,
dev = "",
cachetype = "def",
puc = identical(dev, ""),
strict = FALSE,
renv = TRUE,
...
)
model |
The names of the model for which the data should be provided (e.g. "magpie"). |
rev |
data revision which should be used/produced. Format must be compatible to
|
dev |
development suffix to distinguish development versions for the same data revision. This can be useful to distinguish parallel lines of development. |
cachetype |
defines what cache should be used. "rev" points to a cache shared by all calculations for the given revision and sets forcecache to TRUE, "def" points to the cache as defined in the current settings and does not change forcecache setting. |
puc |
Boolean deciding whether a fitting puc file (if existing) should be read in and if a puc file (if not already existing) should be created. |
strict |
Boolean which allows to trigger a strict mode. During strict mode
warnings will be taken more seriously and will cause 1. to have the number of
warnings as prefix of the created tgz file and 2. will prevent |
renv |
Boolean which determines whether calculations should run
within a renv environment (recommended) or not (currently only applied in
|
... |
(Optional) Settings that should be changed using |
Invisibly, the path to the newly created tgz archive.
The underlying full-functions can optionally provide a list of information back to
retrieveData
. Following list entries are currently supported:
tag (optional) - additional name tag which will be included in the file name of the aggregated collection (resulting tgz-file). This can be useful to highlight information in the file name which otherwise would not be visible.
pucTag (optional) - identical purpose as tag but for the resulting unaggregated collections (puc-files).
Jan Philipp Dietrich, Lavinia Baumstark
calcOutput
,setConfig
## Not run:
retrieveData("example", rev = "2.1.1", dev = "test", regionmapping = "regionmappingH12.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.