View source: R/write_release.R
write_release | R Documentation |
Release data set with identifier — ECONDATA:id(version). Moves the staged dataset to a vintage.
write_release(id, version, description, method = "release", ...)
id |
character. Data identifier. | |||||||
version |
character. Version of the data definition. | |||||||
description |
character. Description of the vintage. This focuses on the reference period, and may additionally have the publication date (not time) in brackets. | |||||||
method |
One of | |||||||
... |
Further optional arguments:
|
An EconData account is required to use this function. The user must provide an API token, which can be found on the Account page of the online portal. A GUI dialog will prompt the user for their API token. Credentials can also be supplied by setting the ECONDATA_CREDENTIALS environment variable using the syntax: "client_id;client_secret", e.g. Sys.setenv(ECONDATA_CREDENTIALS="client_id;client_secret")
, when available.
The functionality provided by write_release is to release, reset, or rollback a release/vintage of the data set according to the function arguments. As this makes modifications to the database, the user calling this function requires higher privileges than needed for other econdatar functions—the user requires membership with the relevant data provider.
No return value, called for side-effects—writes data to server.
read_release
write_econdata
## Not run:
write_release(id = "BA900",
version = "1.0.0",
description = paste0("Vintage - ", Sys.Date()))
write_release(id = "RETAIL",
version = "1.1.0",
description = "Aug 2024 (2024-10-16)",
release = "2024-10-16T14:30:00")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.