View source: R/arrow_generics.R
download_file | R Documentation |
Note: file must be small enough to fit in RAM with this method.
download_file(key, s3, dest = basename(key))
key |
the file name (key) to be used in the bucket (string, can include path) |
s3 |
an arrow FileSystem object (usually S3 Filesystem) |
dest |
file name or connection where file should be written locally |
s3 <- arrow::s3_bucket("neon4cast-forecasts",
endpoint_override = "data.ecoforecast.org",
anonymous=TRUE)
example <- tail(s3$ls("phenology"), 1)
dest <- tempfile()
download_file(example, s3, dest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.