check_status_create {EDIutils} | R Documentation |
Check data package creation status
check_status_create(transaction, wait = TRUE, env = "production")
transaction |
(character) Transaction identifier |
wait |
(logical) Wait for evaluation to complete? See details below. |
env |
(character) Repository environment. Can be: "production", "staging", or "development". |
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.
(logical) TRUE if creation has completed, FALSE if in progress, and error if an error was encountered while processing the request
User authentication is required (see login()
)
Other Evaluation and Upload:
check_status_evaluate()
,
check_status_update()
,
create_data_package()
,
evaluate_data_package()
,
update_data_package()
## Not run:
login()
# Create data package
transaction <- create_data_package(
eml = paste0(tempdir(), "/edi.595.1.xml"),
env = "staging"
)
transaction
#> [1] "create_163966765080210573__edi.595.1"
# Check creation status
status <- check_status_create(
transaction = transaction,
env = "staging"
)
status
#> [1] TRUE
logout()
## End(Not run)