download_and_unzip: download and unzip file from web

View source: R/download_FIADB.R

download_and_unzipR Documentation

download and unzip file from web

Description

download a file from a web address ('url') and unzip it into a specified directory ('file_dir').

Usage

download_and_unzip(url, file_dir)

Arguments

url

web address of .zip file to be downloaded

file_dir

file path of directory into which file will be unzipped

Value

list of file paths extracted from .zip

Examples

## Not run: 
unzipped <- download_and_unzip(
  url = "https://apps.fs.usda.gov/fia/datamart/CSV/MN_PLOT.zip",
  file_dir = tempdir()
)

## End(Not run)


SilviaTerra/tidyFIA documentation built on March 25, 2024, 8:15 p.m.