prep_browser: Prepare local HTML links to open with your browser

View source: R/spanish_schools_ex.R

prep_browserR Documentation

Prepare local HTML links to open with your browser

Description

Prepare local HTML links to open with your browser

Usage

prep_browser(x)

Arguments

x

a character vector of HTML files

Value

the same character vector but with "file://" appended to it

Author(s)

Jorge Cimentada

Examples


library(xml2)
library(scrapex)

one_link <- spanish_schools_ex()[1]
prep_browser(one_link)

## Not run: 
# You can open it with your browser with browseURL
browseURL(prep_browser(one_link))

## End(Not run)

# There have been failed attempts with Windows explorer and other browsers
# from time to time. In case you want to try it out with other browsers,
# just paste the example link of the html website from
# prep_browser(one_link) to your browser and it should open locally.


cimentadaj/scrapex documentation built on Jan. 5, 2023, 9:49 p.m.