Query from URL
Downloads data table from URL. If an error occurs during the query (for example due to no connection) the function waits 3 seconds and tries again. If no result could be obtained after the given number of tries a message indicating the problem is returned.
try_query( url, max_tries = 5, silent = TRUE, header = TRUE, sep = "tab-separated-values" )
url |
a character vector of an URL to the website that contains the table that should be downloaded. |
max_tries |
a numeric vector specifying the number of times the function tries to download the data in case an error occurs. |
silent |
a logical, if TRUE no individual messages are printed after each try that failed. |
header |
a logical, indicates if the first row of the data frame contains variable names. |
sep |
a character vector, specifying the separator of the table at the target URL. Options are "tab-separated-values" or "csv". Default is "tab-separated-values". |
A data frame that contains the table from the url.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.