lighthouse: Lighthouse Function

Description Usage Arguments Examples

Description

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.

Usage

1
lighthouse(page, view = FALSE, keepFile = TRUE)

Arguments

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()

Examples

1
2
3
4
## Not run: 
lighthouse("https://www.r-project.org/")

## End(Not run)

dschmeh/lighthouseR documentation built on May 14, 2019, 5:17 p.m.