browser_advice: What to tell a person when no browser can be opened

View source: R/chrome.R

browser_adviceR Documentation

What to tell a person when no browser can be opened

Description

One line of advice for when browser_available() is FALSE, saying what is missing and how to put it right, for a package that uses safeconduct to show its users. It is the advice safeconduct's own errors give, so the wording is the same whichever package shows it.

Usage

browser_advice(url = NULL)

Arguments

url

Optionally, the URL that needs the browser, to name its host.

Value

A string, or NULL when a browser can be opened.

Examples

browser_advice("https://www12.statcan.gc.ca/")
if (!browser_available()) message(browser_advice())

safeconduct documentation built on Dec. 3, 2026, 1:07 a.m.