process_and_upload_templates_to_blob: Upload Assurance Templates to Blob

View source: R/data_assurance_process.R

process_and_upload_templates_to_blobR Documentation

Upload Assurance Templates to Blob

Description

Upload raw templates to Blob New and then processes templates before uploading to Blob processed and OneDrive.

Usage

process_and_upload_templates_to_blob(
  template.path,
  cont,
  org.site.regex = "(-R)|(-W)|(-TEST)",
  org.id.regex = "[A-Z]+(-R|-W|-TEST)",
  dowload.template.func = NULL,
  dowload.template.args = NULL,
  process.template.func = "process_template_default",
  clean.sharepoint,
  upload.blob
)

Arguments

template.path

Path of the file, determined in earlier step

cont

Connection for Azure blob storage

org.site.regex

Regular expression for identifying the name of the org site from the template path

org.id.regex

Regular expression for identifying the org id from the template path

dowload.template.func

User can specify a function for downloading a template from Sharepoint to e.g. change how certain columns are modified

dowload.template.args

Optional arguments for user specified function for downloading template function

process.template.func

User can specify a function for processing the template, but must take only one argument (i.e. template file) and return only a processed template

clean.sharepoint

Logical specifying whether to clean Sharepoint by deleting files etc.

upload.blob

Logical specifying whether to upload files to blob storage


austl001/MOSLR documentation built on Aug. 17, 2022, 12:07 a.m.