View source: R/write_release.R
write_release | R Documentation |
Release data set vintage for the given dataflow - agencyid:id(version) and data provider - agencyid:id, as a list.
write_release(agencyid, id, version, provideragencyid, providerid, releasedescription, ...)
agencyid |
Agency responsible for the data definition. |
id |
Data identifier. |
version |
Version of the data definition. |
provideragencyid |
Agency responsible for making the data available. |
providerid |
Provider of the data. |
releasedescription |
Description of the new data set vintage. |
... |
Further options include: username (character), EconData username; password (character), EconData password; releasedattime (character), date and time for historical releases in ISO format. |
An EconData account (http://app.econdata.co.za) is required to use this function. The user must provide their credentials either through the function arguments, or by setting the ECONDATA_CREDENTIALS environment variable using the syntax: "username;password". If credentials are not supplied by the aforementioned methods a GUI dialog will prompt the user for credentials.
The functionality provided by write_release is to release a new vintage of the data set described by the function arguments. As this makes modifications to the database the user calling this function requires higher privileges than needed for other econdatar functions - determined by the correct data set role (owner). You can look up user roles for a given data set on the EconData app.
read_release
## Not run: write_release("ECONDATA", "BA900", "1.0", "ECONDATA", "SARB", releasedescription = 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.