rs_viewer: Get 'RStudio' Viewer, or Return Default

Description Usage Arguments Value

View source: R/utils-rstudio.R

Description

Get 'RStudio' Viewer, or Return Default

Usage

1
2
3
4
5
6
7
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 Sept. 6, 2021, 5:08 p.m.