Description Usage Arguments Details Value Author(s) Examples
Enforce to get URL
1 | EnforceGetURL(tryUrl, FUN)
|
tryUrl |
url |
FUN |
Functions that can readin url, for example the "getURL()" function in the "RCurl" package. |
If any errors occur when getting the url, this functions holds the error and try to get url again. An infinit loop may happen if the input url could not be resoved.
retured value from getURL()
Yulong Niu niuylscu@gmail.com
1 2 3 4 5 6 7 | ## Not run:
## It will cause infinit loop
require(RCurl)
testUrl <- 'http://www.test1111111111.com/'
EnforceGetURL(testUrl, FUN = getURL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.