download_data: Download and uncompress a zipped data file

Description Usage Arguments Details

View source: R/download-data.R

Description

Given the URL of a .zip file, this function will download it and decompress it to a given location.

Usage

1
download_data(save_location = getwd())

Arguments

save_location

character. The contents of the downloaded zip file will be uncompressed and saved here. If save_location does not exist, it will be created, as well as any missing parent directories.

Details

This function was intended to download and uncompress the data located at https://archive.ics.uci.edu/ml/datasets/Sentiment+Labelled+Sentences It is not a general function to download arbitrary data, but may be a useful template.


mdneuzerling/ModelAsAPackage documentation built on Feb. 1, 2020, 12:57 a.m.