view_html: Download html and/or display it in the RStudio Viewer /...

View source: R/scraping_helpers.R

view_htmlR Documentation

Download html and/or display it in the RStudio Viewer / Browser

Description

Download html and/or display it in the RStudio Viewer / Browser

Usage

view_html(link = NULL, html = NULL)

Arguments

link

string scalar(optional). Link to a webpage. It will be downloaded via read_html.

html

string scalar or html containing the html to be displayed.

Value

Opens the RStudio viewer and displays the webpage or html.

Examples

# Using link to webpage:
view_html("https://www.google.de")

# Using downloaded html
google = xml2::read_html("https://www.google.de")
view_html(html = google)


m-g-h/scrapurrr documentation built on Aug. 2, 2022, 9:43 a.m.