View source: R/cas_download_httr.R
cas_download_httr | R Documentation |
Mostly used internally by cas_download
.
cas_download_httr(
download_df = NULL,
index = FALSE,
index_group = NULL,
overwrite_file = FALSE,
ignore_id = TRUE,
wait = 1,
create_folder_if_missing = NULL,
pause_base = 2,
pause_cap = 256,
pause_min = 4,
terminate_on = NULL,
retry_times = 3,
db_connection = NULL,
disconnect_db = FALSE,
sample = FALSE,
file_format = "html",
user_agent = NULL,
download_again_if_status_is_not = NULL,
...
)
download_df |
A data frame with four columns: |
index |
Logical, defaults to FALSE. If TRUE, downloaded files will be
considered |
overwrite_file |
Logical, defaults to FALSE. |
wait |
Defaults to 1. Number of seconds to wait between downloading one page and the next. Can be increased to reduce server load, or can be set to 0 when this is not an issue. |
retry_times |
Defaults to 3. Number of times to retry download in case of errors. |
db_connection |
Defaults to NULL. If NULL, uses local SQLite database. If given, must be a connection object or a list with relevant connection settings (see example). |
disconnect_db |
Defaults to TRUE. If FALSE, leaves the connection to database open. |
sample |
Defaults to FALSE. If TRUE, the download order is randomised. If a numeric is given, the download order is randomised and at most the given number of items is downloaded. |
user_agent |
Defaults to NULL. If given, passed to download method. |
... |
Passed to |
Invisibly returns the full httr
response.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.