This function takes in authentication info for EDI, a package number, and an updated EML file to updated an existing package on EDI.

update_edi_package(
  user_id,
  password,
  existing_package_identifier,
  eml_file_path,
  environment = "production",
  package_size = "medium"
)

Arguments

user_id

EDI data portal user ID. Create an account an EDI here

password

EDI data portal user password

existing_package_identifier

The current edi number of the package that you are trying to update.(ex: "edi.101.1")

eml_file_path

The file path to the EML metadata document that you wish to use to update. (A web link to the csv must be included in the dataset information in the EML in order for a data package to be evaluated.)

environment

EDI portal environment to run command in. Can be: "production" - environment for publishing to EDI , "staging" - environment to test upload and rendering of new environment, "development"

Value

Message describing if your package was successfully updated or not.

Examples

if (FALSE) update_edi_package(user_id = "samuelwright", 
                            existing_package_identifier = "edi.740.1",
                            eml_file_path = "data/edi20.1.xml")