sbf_save_aws_files.Rd
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")
)
A string of the AWS S3 bucket name.
A string specifying the path to the sub folder (by default the current sub folder).
A string specifying the path to the main folder (by default the current main folder)
A string (by default NULL
) for which data type to return.
Check the folder names within the shiny-upload in AWS for options common
examples include punch-data, tracks, logger, image and pdf.
A whole number (by default NULL
) indicating which year to
return. Format YYYY.
A whole number (by default NULL
) indicating which month to
return. Format MM.
A whole number (by default NULL
) indicating which day to return.
Format DD.
A string (by default NULL
) containing the name of the file
to return. Do not include extension type.
A string (by default NULL
) with the file extension to
return. Do not include period.
A whole number (by default 1000
) indicating the
maximum number of files to be returned.
A flag specifying whether to ask before overwriting files.
A flag (by default FALSE
) to silence messages about number of
files returned. Set to TRUE
to silence messages.
A string of your AWS user access key ID. The default
is the environment variable named AWS_ACCESS_KEY_ID
.
A string of your AWS user secret access key. The
default is the environment variable named AWS_SECRET_ACCESS_KEY
.
A string of the AWS region. The default is the environment
variable named AWS_REGION
.
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()
if (FALSE) { # \dontrun{
sbf_save_aws_files(
bucket_name = "exploit-upload-poissonconsulting",
data_type = "upload-recapture",
year = 2021,
file_name = "processed_data",
file_extension = "csv"
)
} # }