write_release: write_release

View source: R/write_release.R

write_releaseR Documentation

write_release

Description

Release data set vintage for the given dataflow - agencyid:id(version) and data provider - agencyid:id, as a list.

Usage

write_release(agencyid, id, version, provideragencyid,
              providerid, releasedescription, ...)

Arguments

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.

Details

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.

See Also

read_release

Examples

## Not run: 
write_release("ECONDATA", "BA900", "1.0", "ECONDATA", "SARB",
              releasedescription = paste0("Vintage - ", Sys.Date()))

## End(Not run)

byrongibby/econdatar documentation built on March 18, 2023, 9:30 p.m.