Description Usage Arguments Details Value
Get a zip file from a URL, extract contents, and save file in
data-raw
. If the file already exists there, it is only retrieved if
force
is set to TRUE
. If offline
is FALSE
, then
NULL
is returned if the file isn't already downloaded.
1 2 3 4 5 | unzip_to_data_raw(url, file_name, force = FALSE, verbose = FALSE,
offline = TRUE, data_raw_path = "data-raw")
download_to_data_raw(url, file_name = regmatches(url, regexpr("[^/]*$",
url)), offline = TRUE, data_raw_path = "data-raw")
|
url |
URL of a zip file |
file_name |
file name of a single file in that zip |
force |
logical, if TRUE, then download even if already in
|
verbose |
single logical value, if |
offline |
single logical, if |
data_raw_path |
path where the data-raw directory is. |
The file name is changed to a conservative cross platform name using
make.names
path of unzipped file in data-raw
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.