Skip to contents

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