sbf_save_aws_files | R Documentation |
Download files from an AWS S3 bucket into the analysis.
sbf_save_aws_files(
bucket_name,
sub = sbf_get_sub(),
main = sbf_get_main(),
data_type = NULL,
year = NULL,
month = NULL,
day = NULL,
file_name = NULL,
file_extension = NULL,
max_request_size = 1000,
ask = getOption("sbf.ask", TRUE),
silent = TRUE,
aws_access_key_id = Sys.getenv("AWS_ACCESS_KEY_ID"),
aws_secret_access_key = Sys.getenv("AWS_SECRET_ACCESS_KEY"),
region = Sys.getenv("AWS_REGION", "ca-central-1")
)
bucket_name |
A string of the AWS S3 bucket name. |
sub |
A string specifying the path to the sub folder (by default the current sub folder). |
main |
A string specifying the path to the main folder (by default the current main folder) |
data_type |
A string (by default |
year |
A whole number (by default |
month |
A whole number (by default |
day |
A whole number (by default |
file_name |
A string (by default |
file_extension |
A string (by default |
max_request_size |
A whole number (by default |
ask |
A flag specifying whether to ask before overwriting files. |
silent |
A flag (by default |
aws_access_key_id |
A string of your AWS user access key ID. The default
is the environment variable named |
aws_secret_access_key |
A string of your AWS user secret access key. The
default is the environment variable named |
region |
A string of the AWS region. The default is the environment
variable named |
Other save functions:
sbf_basename_sans_ext()
,
sbf_save_block()
,
sbf_save_data()
,
sbf_save_data_to_db()
,
sbf_save_data_to_pg()
,
sbf_save_datas()
,
sbf_save_datas_to_db()
,
sbf_save_db_metatable_descriptions()
,
sbf_save_db_to_workbook()
,
sbf_save_excel()
,
sbf_save_excels()
,
sbf_save_gpkg()
,
sbf_save_gpkgs()
,
sbf_save_number()
,
sbf_save_numbers()
,
sbf_save_object()
,
sbf_save_objects()
,
sbf_save_plot()
,
sbf_save_png()
,
sbf_save_string()
,
sbf_save_strings()
,
sbf_save_table()
,
sbf_save_window()
,
sbf_save_workbook()
## Not run:
sbf_save_aws_files(
bucket_name = "exploit-upload-poissonconsulting",
data_type = "upload-recapture",
year = 2021,
file_name = "processed_data",
file_extension = "csv"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.