File: view_or_browse.Rd

package info (click to toggle)
r-cran-diffobj 0.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,432 kB
  • sloc: ansic: 455; javascript: 96; sh: 32; makefile: 8
file content (20 lines) | stat: -rwxr-xr-x 697 bytes parent folder | download | duplicates (2)
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.
}