Skip to content

Commit

Permalink
options to download files
Browse files Browse the repository at this point in the history
  • Loading branch information
wibeasley authored Oct 3, 2024
1 parent 9d968dc commit ca69943
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions WebTechnologies.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ or

Many base and CRAN packages provide functions that download files:

- [utils](https://stat.ethz.ch/R-manual/R-devel/library/utils/html/00Index.html)'s `download.file()`.
- `r pkg("curl")`'s `curl_download()`, and `curl_fetch_multi()`, and friends.
- An alternative is to use `httr::GET()` (or `RCurl::getURL()`) to first read
the file into R as a character vector before parsing with a function like `utils::read.table(text = ...)`.
- [utils](https://stat.ethz.ch/R-manual/R-devel/library/utils/html/00Index.html): `download.file()`.
- `r pkg("curl")`: `curl_download()`, `curl_fetch_multi()`, and friends.
- `r pkg("httr2")`: `req_perform(path = <your_file_path>)`, or alternatively `req_perform()` piped to `resp_body_string()`
- `r pkg("httr")`: `GET()`
- `r pkg("RCurl")`: `getURL()`

### Parsing Structured Web Data

Expand Down

0 comments on commit ca69943

Please sign in to comment.