View source: R/write_release.R
write_release | R Documentation |
Release data set with identifier - ECONDATA:id(version).
write_release(id, version, providerid, description, method = "release", ...)
id |
Data identifier. | |||||||
version |
Version of the data definition. | |||||||
providerid |
Data provider identifier. | |||||||
description |
Description of the new data set release/vintage. | |||||||
method |
One of | |||||||
... |
Further Optional arguments:
|
An EconData account (http://econdata.co.za) is required to use this function. The user must provide an API token that 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()))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.