| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/viewer.R |
| 3 |
\name{viewer} |
| 4 |
\alias{viewer} |
| 5 |
\alias{paneViewer} |
| 6 |
\alias{dialogViewer} |
| 7 |
\alias{browserViewer} |
| 8 |
\title{Viewer options} |
| 9 |
\usage{ |
| 10 |
paneViewer(minHeight = NULL) |
| 11 |
|
| 12 |
dialogViewer(dialogName, width = 600, height = 600) |
| 13 |
|
| 14 |
browserViewer(browser = getOption("browser")) |
| 15 |
} |
| 16 |
\arguments{ |
| 17 |
\item{minHeight}{The minimum height (in pixels) desired to show the gadget in |
| 18 |
the viewer pane. If a positive number, resize the pane if necessary to show |
| 19 |
at least that many pixels. If \code{NULL}, use the existing viewer pane |
| 20 |
size. If \code{"maximize"}, use the maximum available vertical space.} |
| 21 |
|
| 22 |
\item{dialogName}{The window title to display for the dialog.} |
| 23 |
|
| 24 |
\item{width, height}{The desired dialog width/height, in pixels.} |
| 25 |
|
| 26 |
\item{browser}{See \code{\link[utils:browseURL]{utils::browseURL()}}.} |
| 27 |
} |
| 28 |
\value{ |
| 29 |
A function that takes a single \code{url} parameter, suitable for |
| 30 |
passing as the \code{viewer} argument of \code{\link[=runGadget]{runGadget()}}. |
| 31 |
} |
| 32 |
\description{ |
| 33 |
Use these functions to control where the gadget is displayed in RStudio (or |
| 34 |
other R environments that emulate RStudio's viewer pane/dialog APIs). If |
| 35 |
viewer APIs are not available in the current R environment, then the gadget |
| 36 |
will be displayed in the system's default web browser (see |
| 37 |
\code{\link[utils:browseURL]{utils::browseURL()}}). |
| 38 |
} |