Description Usage Arguments Value Author(s) See Also Examples
Cache a single remote page if not already present
1 2 3 4 | fetch_page(url, cacheloc, localpathfn = remotepath,
cookie = NA, header = FALSE, Verbose = TRUE,
maxtime = NA, curlopts = NA, DryRun = FALSE,
ReturnCMD = FALSE)
|
url |
Remote URL |
cacheloc |
Root of local cache |
localpathfn |
function that converts remote url to (relative) path |
cookie |
Optional cookie file (e.g. from Mozilla Firefox) |
header |
Whether to download header rather than content of URL |
Verbose |
Whether to be verbose |
maxtime |
Maximum time in seconds to wait for a response |
curlopts |
Additional options for curl |
DryRun |
Say what we would do rather than doing it |
ReturnCMD |
Return resultant shell command rather than running it. |
NULL if already exists / on failure, otherwise path to local file
jefferis
Other fetchpage:
fetch_missing_pages_parallel
1 2 3 4 | ## Not run:
fetch_page("https://github.com/jefferis/gscraper/blob/master/README.md",cacheloc=mycache<-tempfile())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.