create_data_package {EDIutils} | R Documentation |
Create data package
Description
Create data package
Usage
create_data_package(eml, env = "production")
Arguments
eml |
(character) Full path to an EML file describing the data package to be created |
env |
(character) Repository environment. Can be: "production", "staging", or "development". |
Details
Each data entity described in eml
must be accompanied by a
web accessible URL at the EML XPath ".//physical/distribution/online/url".
The EDI data repository downloads the data entities via this URL. The URLs
must be static and not have any redirects otherwise the data entities will
not be downloaded.
Value
transaction (character) Transaction identifier. May be used in a
subsequent call to check_status_create()
to determine the operation
status
Note
User authentication is required (see login()
)
See Also
Other Evaluation and Upload:
check_status_create()
,
check_status_evaluate()
,
check_status_update()
,
evaluate_data_package()
,
update_data_package()
Examples
## 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)