Description Usage Arguments Examples
This function allows you to retrive Lighthouse Data. Lighthouse will analyze the Page you specific in the request. Lighthouse will open a new Chrome Window and run various tests. The output you will get consists of 5 numeric values: Progressive Web App, Performance, Accessibility, Best Practices, SEO. Each a number between 0 (very bad) and 100 (perfect). Additional to this you will get a HTML-file in your Workspace containing all results of the Lighthouse test. So you can have a deeper look in various parts.
1 | lighthouse(page, view = FALSE, keepFile = TRUE)
|
page |
The Page you want to get analyzed by Lighthouse |
view |
Logical. Do you want to open the HTML-File after the run? Default is FALSE. |
keepFile |
Logical. Lighthouse generates a HTML-File with the results and saves it in your Workspace every Time you run it. If you don“t want this set keepFile to FALSE. Default is TRUE. lighthouse() |
1 2 3 4 | ## Not run:
lighthouse("https://www.r-project.org/")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.