1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pager.R
\name{view_or_browse}
\alias{view_or_browse}
\title{Invoke IDE Viewer If Available, browseURL If Not}
\usage{
view_or_browse(url)
}
\arguments{
\item{url}{character(1L) a location containing a file to display}
}
\value{
the return vaue of \code{getOption("viewer")} if it is a function, or
of \code{\link{browseURL}} if the viewer is not available
}
\description{
Use \code{getOption("viewer")} to view HTML output if it is available as
per \href{https://support.rstudio.com/hc/en-us/articles/202133558-Extending-RStudio-with-the-Viewer-Pane}{RStudio}. Fallback to \code{\link{browseURL}}
if not available.
}
|