Download TRISK input data files from a specified endpoint
Source:R/download_trisk_inputs.R
download_trisk_inputs.RdThis function downloads TRISK input data files from a specified endpoint URL and saves them to a local folder. It ensures that the local folder exists before downloading the files. If the folder does not exist, it is created. Package-level variables for `endpoint` and `s3_prefix` are used if not provided as parameters.
Usage
download_trisk_inputs(
local_save_folder,
endpoint = NULL,
s3_prefix = NULL,
skip_confirmation = FALSE
)Arguments
- local_save_folder
Where to download outputs locally.
- endpoint
URL of the endpoint (optional; defaults to `TRISK_DATA_INPUT_ENDPOINT` from the package).
- s3_prefix
Prefix for the files in the S3 bucket (optional; defaults to `TRISK_DATA_S3_PREFIX` from the package).
- skip_confirmation
Set to true to allow CI/CD building of vignettes