Learn R Programming

EDIutils (version 1.0.3)

check_status_update: Check data package update status

Description

Check data package update status

Usage

check_status_update(transaction, wait = TRUE, env = "production")

Value

(logical) TRUE if the update has completed, FALSE if in progress, and error if an error was encountered while processing the request

Arguments

transaction

(character) Transaction identifier

wait

(logical) Wait for evaluation to complete? See details below.

env

(character) Repository environment. Can be: "production", "staging", or "development".

Details

If wait = TRUE, then the function will enter a "while" loop checking every 2 seconds for the completed evaluation report. If wait = FALSE, then the function will only check once and return the result.

See Also

Other Evaluation and Upload: check_status_create(), check_status_evaluate(), create_data_package(), evaluate_data_package(), update_data_package()

Examples

Run this code
if (FALSE) {

login()

# Update data package
transaction <- update_data_package(
  eml = paste0(tempdir(), "/edi.595.2.xml"),
  env = "staging"
)
transaction
#> [1] "update_edi.595_163966788658131920__edi.595.2"

# Check update status
status <- check_status_update(
  transaction = transaction,
  env = "staging"
)
status
#> [1] TRUE

logout()
}

Run the code above in your browser using DataLab