Description Usage Arguments Value Examples
get the Google Page Speed results (if available) from test
1 2 | getPageSpeedData(server, testId, run = 1L, repeatView = FALSE,
dryRun = FALSE, ...)
|
server |
A WebPagetest server |
testId |
test ID string |
run |
an integer. Which run number on a multiple runs test. Defaults to 1L. |
repeatView |
get the Repeat View (cached view) instead of default First View (primed cache). Defaults to FALSE |
dryRun |
If TRUE just return the RESTful API URL. Defaults to FALSE |
... |
Additonal function arguments |
A list of Google Page Speed results (if available) from test. It is unlikely pagespeed data is available for recent tests. See https://github.com/WPO-Foundation/webpagetest/issues/669. If the Page Speed data is not available a HTTP 404 not found error will be returned.
1 2 3 4 5 6 | ## Not run:
WPT <- server()
tID <- "121216_XZ_AA"
pagespeed <- getPageSpeedData(WPT, tID)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.