Here's some sample R-code balm for the poor souls (like myself struggled with aws cli issues all day

Here’s some sample R-code balm for the poor souls (like myself struggled with aws cli issues all day today):
library(aws.s3)
Sys.setenv(
“AWS_ACCESS_KEY_ID” = “AKIAWWZ7POZOCNOLSCXN”,
“AWS_SECRET_ACCESS_KEY” = “e0YEE1pQxRQoOFXp3OzkUg9HnBgK1azZJDhu2xRg”,
“AWS_DEFAULT_REGION” = “us-west-2”)
data <- s3read_using(read.csv,
object = “s3://sg-c19-response/weekly-patterns/v1/main-file/2020-03-15-weekly-patterns.csv.gz”)
I hope it helps someone.