cvmartin
3/11/2018 - 7:24 PM

Download from AWS S3

For some reason, once added SSL to a server it becomes much harder to upload a folder, in the form of zip file. This scripts allows to connect easily with S3 in AWS, and get the folder from there.

library(aws.s3)
Sys.setenv("AWS_ACCESS_KEY_ID" = "XXX",
           "AWS_SECRET_ACCESS_KEY" = "xxxx",
           "AWS_DEFAULT_REGION" = "eu-central-1")



save_object("demand_hackaton_pro.zip",
            file = "demand_hackaton_pro.zip",
            bucket = "enerflows")


unzip("demand_hackaton_pro.zip")