download_xml: Download a HTML or XML file
DescriptionUsageArgumentsDetailsValueSee AlsoExamples
View source: R/xml_parse.R
Description
Libcurl implementation of (the "internal" download method) with added support for https, ftps, gzip, etc. Default behavior is identical to , but request can be fully configured by passing a custom .
Usage
Arguments
A character string naming the URL of a resource to be downloaded. |
A character string with the name where the downloaded file is saved. |
If , suppress status messages (if any), and the progress bar. |
A character string specifying the mode with which to write the file. Useful values are , (binary), (append) and . |
a curl handle object |
Details
The main difference between and is that checks the http status code before starting the download, and raises an error when status is non-successful. The behavior of on the other hand is to proceed as normal and write the error page to disk in case of a non success response.
Value
Path of downloaded file (invisibly).
See Also
curl_download
Examples
## Not run: download_html("http://tidyverse.org/index.html")## End(Not run) |
xml2 documentation built on April 24, 2020, 1:07 a.m.
-