safe_readHTMLTable: Safe html table scrapping

Description Usage Arguments Details Value Author(s) Examples

View source: R/safe_readHTMLTable.R

Description

Function safe_readHTMLTable tries to download the table from given URL several times.

Usage

1
safe_readHTMLTable(..., time = 60, attempts = 10)

Arguments

...

arguments that will be passed to readHTMLTable

time

sleep interval after each failure

attempts

max number of tries (if there is a problem with connection)

Details

Function safe_readHTMLTable performes 10 (by default) attempts to download the URL and waits 60sec (by default) after each failure

Value

character vector

Author(s)

Przemyslaw Biecek

Examples

1
2
3
4
5
## Not run: 
page <- paste0('http://www.sejm.gov.pl/Sejm7.nsf/',
               'posiedzenie.xsp?posiedzenie=99&dzien=2')
safe_readHTMLTable(page)
## End(Not run)

sejmRP documentation built on May 2, 2019, 5:16 a.m.