This function downloads data from remote sources like CKAN and AWS S3. It retrieves the data based on the hashed_data identifier and assumes the data is stored using the same naming conventions provided in the `remote_share` function.
Usage
remote_raw_download(
hashed_data = NULL,
file_path = NULL,
ckan_url = NULL,
ckan_key = NULL,
ckan_package = NULL,
s3_key_id = NULL,
s3_secret_key = NULL,
s3_region = NULL,
s3_bucket = NULL
)
Arguments
- hashed_data
A character string representing the hashed identifier of the data to be downloaded.
- file_path
location and name of the zip file to create.
- ckan_url
A character string representing the CKAN base URL.
- ckan_key
A character string representing the CKAN API key.
- ckan_package
A character string representing the CKAN package identifier.
- s3_key_id
A character string representing the AWS S3 access key ID.
- s3_secret_key
A character string representing the AWS S3 secret access key.
- s3_region
A character string representing the AWS S3 region.
- s3_bucket
A character string representing the AWS S3 bucket name.
Examples
if (FALSE) { # \dontrun{
downloaded_data <- remote_raw_download(hashed_data = "example_hash",
file_path = "your/path/file.zip",
ckan_url = "https://example.com",
ckan_key = "your_ckan_key",
ckan_package = "your_ckan_package",
s3_key_id = "your_s3_key_id",
s3_secret_key = "your_s3_secret_key",
s3_region = "your_s3_region",
s3_bucket = "your_s3_bucket")
} # }