rs_viewer: Get 'RStudio' Viewer, or Return Default

View source: R/utils-rstudio.R

rs_viewerR Documentation

Get 'RStudio' Viewer, or Return Default

Description

Get 'RStudio' Viewer, or Return Default

Usage

rs_viewer(
  ...,
  default = TRUE,
  version_needed = "1.3",
  child_ok = FALSE,
  shiny_ok = FALSE
)

Arguments

...

passed to viewer

default

if rs_avail fails, the value to return. Default is TRUE

version_needed, child_ok, shiny_ok

passed to rs_avail

Value

If viewer can be called and 'RStudio' is running, then launch 'RStudio' internal viewer. Otherwise if default is a function such as browseURL, then call the function with given arguments. If default is not a function, return default


dipsaus documentation built on July 9, 2023, 5:43 p.m.