View source: R/download_FIADB.R
download_and_unzip | R Documentation |
download a file from a web address ('url') and unzip it into a specified directory ('file_dir').
download_and_unzip(url, file_dir)
url |
web address of .zip file to be downloaded |
file_dir |
file path of directory into which file will be unzipped |
list of file paths extracted from .zip
## Not run:
unzipped <- download_and_unzip(
url = "https://apps.fs.usda.gov/fia/datamart/CSV/MN_PLOT.zip",
file_dir = tempdir()
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.