powered by
Constructs GET information string for AWS S3 Bucket
make_aws_call( path_to_file = "/", bucket = "hcp-openaccess", region = "us-east-1", access_key = NULL, secret_key = NULL, lifetime_minutes = 5, query = NULL, verb = "GET", sign = TRUE )
Character of the url to be passed to httr `VERB`s
httr
Path to file on HCP S3 Bucket
Bucket to download from
Region of S3 Bucket
Amazon S3 Access Key
Amazon S3 Secret Key
Time that connection can be opened
additional query to add to verb command
verb
httr VERB to be used
Should the url be signed?
if (have_aws_key()){ path_to_file <- paste0( "HCP_900/100206/MNINonLinear/", "100206.164k_fs_LR.wb.spec") make_aws_call(path_to_file) }
Run the code above in your browser using DataLab