View source: R/faasr_get_file.R
faasr_get_file | R Documentation |
Helper function to download a file from an S3 bucket to local Action folder
server_name |
string with name of the S3 bucket to use; must match a name declared in the faasr list |
remote_folder |
string with the name of the remote folder where the file is to be downloaded from |
remote_file |
string with the name for the file to be downloaded from the S3 bucket |
local_folder |
string with the name of the local folder where the file to be downloaded is stored |
local_file |
string with the name of the local file once downloaded |
return nothing / delete the file in the bucket
# This function can be run only in the container
if (interactive()){
faasr_get_file("remote_folder", "remote_file", "local_folder", "local_file")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.