nettle_downzip: Download and Unzip

Description Usage Arguments Details Value

View source: R/nettle_downzip.R

Description

Download and Unzip file to temporary directory

Usage

1
nettle_downzip(zip.url, zip.file)

Arguments

zip.url

zip url

zip.file

name of file inside zip that must be read

sheet

read_excel

Details

This function will download and unzip file to temporary location, then read_excl.

Value

location of unzipped file

@examples x <- "http://comptroller.defense.gov/Portals/45/Documents/defbudget/fy2018/FY_2018_Green_Book.zip" y <- "FY18 PB Green Book Chap 2.xlsx" my.path <- nettle_downzip(x, y) data <- read_excel(my.path, sheet = 1)


ctmann/nettles.toolbox documentation built on May 14, 2019, 12:29 p.m.