read_from_datalake | R Documentation |
This function get the specified object from an AWS S3 bucket and reads it using functions designed for each relevant file type. If the file is either a .RDS, .csv, or .xlsx; it first downloads the file to a temp directory and, therefore, it avoids the unintended consequences of saving the file in the disk. If it is not a recognisable file type, it saves it to the working directory. This function also uses key search terms and will throw an error if there is more than one file with the search terms used.
read_from_datalake(..., date = NULL, all_sheets = T, version = NULL)
... |
Key terms to search for in the AWS S3 bucket |
all_sheets |
If more than one sheet is present, T = read all sheets into a list, F = default to sheet specified |
version |
VersionId of the object key desired. Can be retrieved using
|
## Not run:
setup_datalake_access()
read_from_datalake("landcover", "concordance", "lcdb4")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.